dave_c00
-
Posts
1 -
Joined
-
Last visited
Never
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.
PHP error_reporting
in PHP Coding Help
Posted
I have recently hired a new server and the php.ini file is different to what I usually have.
The display errors section is set to off.
I quite like the idea of this as the server is going to contain mostly my sites so no errors is good.
However when writing scripts I would like to be able to see any errors so I was planning on using ini_set to display them.
I have tried using:
[code]
error_reporting(E_ALL);
ini_set("display_errors", 1);
[/code]
at the top of a script but cannot get any parse or fatal errors displayed just blank pages. I can get Notices displayed but no parse or fatals.
Can anyone help? Maybe I need to put another ini_set before...
I have php version 4.3.9 installed.
Thanks
Dave