Recent Posts
Tags
 

Enabling PHP Error messages

Enabling PHP Error messages

11:28 29 January in PHP, Scripting
0 Comments

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:

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

Post A Comment

%d bloggers like this: