well, you can set your own error handler
http://www.php.net/manual/en/ref.errorfunc.php
if you just dont want to display the errors, you can controll that w/ the desired setting for error_reporting() and/or setting display_errors = off
you could also use output buffering