You want to disable it when the user loads it or just hide it when you are testing? Note that if you have an E_NOTICE level warning, it is most likely you did something wrong. What is it? And if you want to silent it when the user uses it, add the @ silence operator at the place the error occurred, and if you just want to hide the warning completely (do not add this line in production) add this line: PHP: error_reporting(E_ALL & ~E_NOTICE);