Not showing syntax errors

Discussion in 'PHP' started by jitesh, Apr 4, 2007.

  1. #1
    Hi All,

    I have a prb that when i run any web page and if it contains an syntax error. then nothing is displayed. I mean page is blanked. what need to change in php.ini.

    Thanks.
     
    jitesh, Apr 4, 2007 IP
  2. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #2
    Set error_reporting to E_ALL ^ E_NOTICE
     
    nico_swd, Apr 5, 2007 IP
  3. jitesh

    jitesh Peon

    Messages:
    81
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Tried All the way.
    Still As it is

     
    jitesh, Apr 5, 2007 IP
  4. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #4
    Hm, and try setting display_errors to 1.


    If that doesn't work, try placing these lines on top of your script.
    
    error_reporting(E_ALL ^ E_NOTICE);
    ini_set('display_errors', '1');
    
    PHP:
     
    nico_swd, Apr 5, 2007 IP