Page 1 of 1

How to make PHP show all errors again?!

Posted: Wed Jan 03, 2007 1:03 pm
by oskare100
Hello,
Before I changed to my own server PHP always showed all errors, also things like if I had forgotten a ; on one line it told me that something was wrong. Now, it just shows a bland page and I have to go though the whole script or guess.

I have added;

Code: Select all

error_reporting(E_ALL);
ini_set('display_errors', '1');
But it doesn't help, it still just shows blank pages when something is wrong. Isn't it possible to change something in the PHP config file or something else to make PHP show all errors?

Thanks in advance,
Best Regards
Oskar R

Posted: Wed Jan 03, 2007 1:13 pm
by Weirdan
php manual wrote: Note: Although display_errors may be set at runtime (with ini_set()), it won't have any affect if the script has fatal errors. This is because the desired runtime action does not get executed.
just switch display_errors on in your php.ini

Posted: Wed Jan 03, 2007 1:26 pm
by Kieran Huggins
you could also try ini_set('error_reporting', E_ALL);

Also, from the manual:
Note: Although display_errors may be set at runtime (with ini_set()), it won't have any affect if the script has fatal errors. This is because the desired runtime action does not get executed.
So it looks like you'll have to use either php.ini OR your .htaccess file to set this,

refer to: http://www.php.net/manual/en/ref.errorf ... -reporting