Recent Posts

Enabling PHP Error messages

Enabling PHP Error messages

11:28 29 January in PHP, Scripting

I have a server at work which has error messages turned off in the PHP INI file, which I do not have access to (kind of irritating given this is the server I have to test on daily…).  To get around this, and to find places where a PHP file is failing, I add the following lines to the top of a give script if I want to see the errors on this box:

ini_set(“display_errors”, 1);
ini_set("display_errors", 1);
No Comments

Post A Comment

%d bloggers like this: