Tuesday, September 25, 2012

PHP Script show all errors

Sometime the PHP script doesn't show error.  It seems the server default 
config set not to show the errors. Here's how to override it. 
 
error_reporting(E_ALL);
ini_set('display_errors', '1'); 
 
Copy and paste it on your page begin after the php tag start.

No comments:

Post a Comment