Page 1 of 1

No warning or error for variable not declared

Posted: Sat May 29, 2004 8:12 am
by anjanesh
I've another problem. A file contain just this :

Code: Select all

<?php
print($asd);
?>
This is not giving any warning or error saying that $asd is not declared. It used to before. What do I have to change in php.ini

Thanks

Posted: Sat May 29, 2004 8:15 am
by kettle_drum
You are not reporting all errors, something like "display_errors = On" in the php.ini file. Or you can just set it up in your script using:

Code: Select all

error_reporting(E_ALL);
@ini_set('display_errors', '1');
And this will show all errors/warnings.

[RESOLVED]

Posted: Sat May 29, 2004 8:37 am
by anjanesh
Yes. I got it.
Thanks a lot for your help.