PHP ini file vs httpd.conf

Discussion in 'PHP' started by geekology, Oct 17, 2008.

  1. #1
    This is in continuation of the thread http://forums.digitalpoint.com/showthread.php?t=1070007 . Since the topic has changed I thought to start a new thread.

    I was trying to get my browser report errors, but nothing on php.net could help...finally I landed here http://www.floresense.com/resc_center/?art=1335

    The first two points are the same but the 3rd point in above link did the job for me...once it started working I reverted the changes I made to ini file and now, only the httpd.conf contains the parameters...
    
    php_flag  display_errors on
    
    php_value error_reporting 2039 
    PHP:
    I checked after bouncing the server and the error reporting is still working. So far so good.

    1) Can someone tell me why ini configuration didn't work for me? The above link has mentioned something like "If you checked above two points and you are still not getting php errors displayed on screen, then it could be a config bug with php itself (something you cant do anything about)" but has not given any reason.

    2) Are the settings in httpd.conf override that in .ini file.

    FYI... I have used the PHP ini that is shown through phpinfo() under Loaded Configuration File
     
    geekology, Oct 17, 2008 IP
  2. EricBruggema

    EricBruggema Well-Known Member

    Messages:
    1,740
    Likes Received:
    28
    Best Answers:
    13
    Trophy Points:
    175
    #2
    add this line to your scripting

    ERROR_REPORTING(E_ALL);

    and it will show all errors and notices
     
    EricBruggema, Oct 17, 2008 IP