Page 1 of 1

displaying errors with out access to configure php.ini

Posted: Wed Apr 16, 2008 10:06 pm
by bhonan
is there a way to display errors on my page when that has been disabled in the main php config files? I'm working on a site on a server where I cannot modify the main php config.

Re: displaying errors with out access to configure php.ini

Posted: Wed Apr 16, 2008 10:24 pm
by s.dot
The ini_set() function.

Place this at the top of your script.

Code: Select all

ini_set('display_errors', 'On');
error_reporting(E_ALL);
However, if there's a parse error, just a blank white page will be returned, even with the above code. You can also create a .htaccess file with the php configuration options.