PHP Error reporting

Discussion in 'PHP' started by the_lar, Mar 6, 2008.

  1. #1
    Hi,

    My PHP version is 5.1.6

    I'm confused about setting error reporting up - by default it's off on my server but for a particular file I want to enable error reporting, so I tried:

    ini_set('display_errors','1');
    	error_reporting(E_ALL);
    Code (markup):
    This didn't work, no errors were displayed at all. But then I tried putting the following into .htaccess:

    php_value display_errors 1

    This worked and I now get errors. I don't understand this though as I thought the scope of display_errors was PHP_INI_ALL

    Can anyone explain?

    Thanks
    Lar
     
    the_lar, Mar 6, 2008 IP