Web Hosting Talk







View Full Version : Error Reporting


Dan L
03-02-2006, 02:47 PM
If I run a PHP script locally [Windows + WAMP] it outputs normal errors. However, on two different Plesk servers, it displays no errors, even with error_reporting() at different levels.

Any thoughts as to why?

innova
03-02-2006, 03:15 PM
What is the display errors setting set to?

Dan L
03-02-2006, 03:43 PM
I've set error_reporting to both 'E_ALL' and 2048.

If there's another setting I'm not aware of, that may be the issue.

innova
03-02-2006, 06:16 PM
Read carefully: display_errors, not error_reporting! :

display_errors
This determines whether errors should be printed to the screen as part of the output or if they should be hidden from the user.

Note: This is a feature to support your development and should never be used on production systems (e.g. systems connected to the internet).

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.

Dan L
03-02-2006, 07:33 PM
I wasn't aware of display_errors. I'll give it a try tomorrow and see how it works.

Thanks :)