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?