Displaying Errors on a PHP page without editing the php.ini

If you don’t have access to your php.ini file, or don’t want to mess with it; you can add this code to the top of the page.  You can also add it to your ‘header.php’ file to show errors on all your pages that you’ve included the header.

[cc escaped=”true” lang=”php”]

<?php

error_reporting(E_ALL);

ini_set(‘display_errors’, ‘1’);

?>

<html> …. </html>

[/cc]

Hope this helps you troubleshoot your problem!