Se ti funziona perfettamente, fai semplicemente error_reporting(0);