Here is some basic information that may help.
You might try using set_error_handler. Also, possibly, you could set error logging, and have your page read the logs to you. Or perhaps set track_errors in php.ini, and record the content(s) of $PHP_ERRORMSG in an array which you could display on said page.
Also, in PHP 5, you may have the option of "throwing exceptions" a la Java. Don't know if it's in the manual yet, though, or whether you're using v5 yet (but I guess I'd have to doubt that...)