PHP error tracking on new server
| From: | Terry Romine | Date: | Sun, 07 Aug 2005 15:03:10 +0000 |
| Subject: | PHP error tracking on new server | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-220173@lists.php.net to get a copy of this message | ||
My hosting service recently switched to a newer server and in transporting the websites (many) over, they set up php different (vers 4.3.10). I know it's not "nice" to show errors on a published website, but I don't have a testing server, and I need to debug scripts once in a while. The problem is that when an error occurs, the page just comes up blank, and I have to practically pick it apart one line at a time to track down the problem.
I tried
ini_set('display_errors',TRUE);
error_reporting(E_ERROR | E_WARNING | E_PARSE);
but that doesn't seem to matter either.
From phpinfo() it says display_errors is set off and error_reporting is 7.
Any ideas on what flag may need to be set and how to do it on a file-by-file basis so I am only tweaking it when testing?
Terry