I've figured out a work around using cURL. First create a file in your base directory (not your web directory since the script has passwords in it) e.g. /home/##username##/errorreport.php Add the following code to it, changing the bits starting and ending in ##:
Code:
$ch = curl_init();
curl_setopt ($ch, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)");
curl_setopt($ch, CURLOPT_URL, '##AddressOfErrlog##');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_ANY);
curl_setopt($ch, CURLOPT_USERPWD, '##username##:##password##');
$content = curl_exec($ch);
curl_close($ch);
$pattern = '/\<pre\>(.*)\<\/pre\>/s';
preg_match($pattern, $content, $matches);
mail('##toemailaddress##', 'Errors', $matches[1]);
To find the ##AddressOfErrlog##, open cPanel then click on "Error log" then copy the url. Once that is created set up a Cron job to execute once per day the command: "php /home/##username##/errorreport.php". You can add as many sites as you want, just copy the code block and change the username, password and AddressOfErrlog to each site you want to report errors from.
Now sit back and check your mail each day to see if any of your sites are going pear shaped.
