php disply errors
Posted by: logonchristy (---.104.174.122.airtelbroadband.in)
Date: August 18, 2009 01:20PM

when i execute a site in a local machine i got lot of error like undefined which is working other system fine...

After i unchecked the display error in php settings those errors not displayed ...

Is there any fault in system configuration or anything else...

I checked in several systems all working fine except my system...

Thanx in advance...

Options: ReplyQuote
Re: php disply errors
Posted by: toumimi (84.6.111.---)
Date: August 18, 2009 02:08PM

There are notice and indicate that there is a potential problem in your code..
By using variable that have not been declared and/or assigned, you take a risk.
PHP shows you which variable is not defined, but you can tell it to hide those notice in php.ini

Note that a better choice is to correct all notices, to get a more compatible code and to be sure it's working in every environnement you use, and it can tell you if make a mistake with a variable name..
Example:
my_var = 10;
echo my_varr*2;  // Notice: undefined var 'my_varr'

Declaring a variable with a default value is strongly recommended, and notice can help you detecting missing ones.
If you still want to desable them, see function error-reporting : [www.php.net] , also available in php.ini

Florian

WampServer Patch (Screenshots)
Topic EN : www.wampserver.com
Topic FR : www.wampserver.com

Options: ReplyQuote


Sorry, only registered users may post in this forum.