Thanks that worked great.
In my files I put:
require_once("../cgi-bin/error.php")
I modified some example code to get error.php:
<?php
// set the error reporting level for this script
error_reporting(E_USER_ERROR | E_USER_WARNING | E_USER_NOTICE);
// error handler function...