Archive

Posts Tagged ‘display’

Override php.ini to turn on error reporting, and display errors

February 13th, 2009 1 comment

If you’re server doesn’t allow you to show error in php try the following lines at the near the top of your script.

Try this:

<?php
// Report all PHP errors
error_reporting(E_ALL);
ini_set("display_errors", 1);

If it still doesn’t show up, the web server daemon may not have write permissions to the default logging directory.

Categories: PHP Tags: , ,