Disable Notices and Warnings

Discussion in 'PHP' started by greatlogix, Dec 12, 2008.

  1. #1
    error_reporting(E_ALL ^ (E_NOTICE | E_WARNING));
    PHP:
    I am using this code and still getting Notices printed on the page. What I am doing wrong here?
     
    greatlogix, Dec 12, 2008 IP
  2. misbah

    misbah Active Member

    Messages:
    265
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    68
    #2
    type this code on top your script
     
    misbah, Dec 12, 2008 IP