There are also other options that you can pass into the error_reporting function, and you can even use the "@" operator to suppress errors... more information described here:

Remove warnings in PHP