error message

Discussion in 'PHP' started by majidk, Aug 5, 2009.

  1. #1
    For some reason, I can't get any error messaes displayed on my php scripts. When I rectify a specific line, the screen just goes blank without even stating if theres an error with a line?. Please Help
     
    majidk, Aug 5, 2009 IP
  2. premiumscripts

    premiumscripts Peon

    Messages:
    1,062
    Likes Received:
    48
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Add this at the top of the script:

    
    ini_set('display_errors', 1);
    error_reporting(E_ALL);
    
    PHP:
    Now, there may be a parsing error, which prevents the script from executing at all. In that case you will have to look in the php error_log.
     
    premiumscripts, Aug 5, 2009 IP