php error

Discussion in 'PHP' started by arunsuriindia, Mar 21, 2007.

  1. #1
    how do i enable error messages in php . i think some changes are required in config.php
     
    arunsuriindia, Mar 21, 2007 IP
  2. jitesh

    jitesh Peon

    Messages:
    81
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    open c:/windows/php.ini

    Then set (Remove ; From front of ;display_errors = On and ;error_reporting = E_ALL & E_NOTICE )

    display_errors = On
    error_reporting = E_ALL & E_NOTICE


    Otherwise mention php scripst
    <?php
    error_reporting(1);
    ?>
    in front of ur page.
     
    jitesh, Mar 21, 2007 IP
  3. sadcox66

    sadcox66 Spirit Walker

    Messages:
    496
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #3
    In your .htaccess file add
    
    php_value error_reporting E_ALL
    
    Code (markup):
     
    sadcox66, Mar 21, 2007 IP