Antartican
09-06-2005, 04:40 PM
Before I go insane, could some kind person please give me the exact php code that I put at the top of my script to force php errors to be printed to the screen when they are run.
What I think php.net is saying to do just doesn't work!
:angry:
opera.mp3
09-06-2005, 04:44 PM
do you have display_errors = on ?
ini_set('display_errors', 'on');
Antartican
09-06-2005, 04:56 PM
display_errors is off in the php config.
But if I put the code you supplied at the top of my script I still just get a blank page and I do not know why.
Does this mean that the error is a fatal error??
Antartican
09-06-2005, 05:12 PM
It seems that it was a fatal error. My script error was using a variable name that started with a number (ie $1monthbefore). Now error reporting is working. Thanks opera.mp3, Ant
TonyB
09-06-2005, 06:58 PM
Just to add something here you can specify the error types to be displayed by using
error_reporting(E_ALL & ~E_NOTICE);
You can find information about it at http://ca.php.net/manual/en/function.error-reporting.php
Quite a few PHP configurations simply have error_reporting set to none so this should give you the ability to change what they have set for a particular script you're running