Forum Moderators: coopster

Message Too Old, No Replies

defined and undefined variables

         

Flolondon

5:34 am on Aug 18, 2005 (gmt 0)

10+ Year Member



can someone kindly highlight the different between defined and undefined variables as i keep getting these errors..
with regards to php

thanks.

pureform

6:23 am on Aug 18, 2005 (gmt 0)

10+ Year Member



Tt sounds like you need to tell your error reporting to simmer down when it comes to notices. Try setting "error_reporting" in your php.ini file to:

error_reporting = E_ALL & ~E_NOTICE

Flolondon

6:51 am on Aug 18, 2005 (gmt 0)

10+ Year Member



but isnt it good to see what errors there are on your script...I am confused. by the way what does E All and E notice mean..?

dreamcatcher

2:02 pm on Aug 18, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Flolondon,

Undefined variable errors are because you are using the variable before it has been set. Look into the isset() function.

[uk2.php.net...]

For the error reporting, try this:

[uk.php.net...]

dc