SunQuest
           Older Contests
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP ContestsOlder Contests

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
You eat, breathe and sleep innovation. Build your mobile intelligence with BlackBerry® experts this July. Register Today!
  #1  
Old August 14th, 2003, 11:11 AM
bakertrg's Avatar
bakertrg bakertrg is offline
Contributing User
Codewalkers Regular (2000 - 2499 posts)
 
Join Date: Apr 2007
Location: Scottsdale AZ, US
Posts: 2,253 bakertrg User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 48 m 45 sec
Reputation Power: 4
Send a message via Yahoo to bakertrg
[Spades] errors and warnings

do you run with error reporting (E_ALL)? I think it came up one time before that php suppresses some warnings unless you have error reporting full on. I was wondering what happens to something like this when the variable is not set in the query string?

php Code:
Original - php Code
  1.  
  2. $thisround = $_GET['thisround'];

Reply With Quote
  #2  
Old August 14th, 2003, 11:47 AM
maxhb maxhb is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Bremen, Germany
Posts: 48 maxhb User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
[Spades] RE: errors and warnings

Hi!
Quote:
I was wondering what happens to something like this when the variable is not set in the query string?

Afaik this will not produce any errors because $_GET is an associative array and would simply contain an empty string as the value of it's key 'thisround'.

CU
maxhb

Reply With Quote
  #3  
Old August 14th, 2003, 12:39 PM
xs0 xs0 is offline
Codewalkers Novice (500 - 999 posts)
 
Join Date: Apr 2007
Location: Ljubljana, Slovenia
Posts: 760 xs0 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
[Spades] RE: errors and warnings

I think it will return a notice (undefined index or something like that), but I run it with E_ALL & ~E_NOTICE, so you shouldn't worry...

Reply With Quote
  #4  
Old September 6th, 2003, 04:27 PM
TheRat TheRat is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Forsand, Rogaland, Norway
Posts: 30 TheRat User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
[Spades] RE: errors and warnings

Anyways, you can do it like this:

php Code:
Original - php Code
  1. $thisround = @$_GET['thisround'];


(I always need to do that some places in xs0's scripts cos I run with E_ALL )

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP ContestsOlder Contests > [Spades] errors and warnings


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway