Is it save to suppress the notices? I mean if I suppress all the notices, will there be any future unforesee problems? Just want to find out....Weirdan wrote:When you uncheck the checkbox and then click submit, browser just don't send the checkbox value as a part of the request. So on the server side corresponding var is undefined. you need to test, if it's defined:or just suppress the notice:Code: Select all
if(isset($test)) echo $test;Code: Select all
echo @$test;
php code in iis/apache
Moderator: General Moderators
Sorry, my apology. I have checked again, and found that there is another error_reporting = E_ALL at the bottom. Although I have enable error_reporting = E_ALL & ~E_NOTICE, there is one defaulted error_reporting = E_ALL down at the bottom, therefore, I still see the notices being displayed.Bech100 wrote:is your line error_reporting = E_ALL & ~E_NOTICE exactly?
Now it is ok. Thanks.