Hello,
I'm a project manager trying to help a client while my PHP guy is away today. Oye!
(I do have some Coldfusion background, heh heh)
Anyway, the site is not coming up (white page) and the host has said the following:
Fatal error: Maximum execution time of 30 seconds exceeded in
/vservers/angelisms/htdocs/includes/error.php on line 4
It appears there is something wrong with the function in the error.php file.
The error.php file has the following:
<?php
set_error_handler('errorHandler');
function errorHandler ($errno, $errstr, $errfile, $errline, $errcontext)
{
switch ($errno)
{
case E_USER_WARNING:
case E_USER_NOTICE:
case E_WARNING:
case E_NOTICE:
case E_CORE_WARNING:
case E_COMPILE_WARNING:
break;
case E_USER_ERROR:
case E_ERROR:
case E_PARSE:
case E_CORE_ERROR:
case E_COMPILE_ERROR:
//@session_start();
if (eregi('^(sql)$', $errstr)) {
$MYSQL_ERRNO = mysql_errno();
$MYSQL_ERROR = mysql_error();
$errstr = "MySQL error: $MYSQL_ERRNO : $MYSQL_ERROR";
} // if
echo "<h2>An error occurred.</h2>\n";
echo "<b><font color='red'>\n";
echo "<p>Fatal Error: $errstr (# $errno).</p>\n";
echo "<p>Error in line $errline of file '$errfile'.</p>\n";
echo "<p>Script: '{$_SERVER['PHP_SELF']}'.</p>\n";
echo "</b></font>";
// Stop the system
//session_unset();
//session_destroy();
die();
default:
break;
} // switch
} // errorHandler
?>
Any help would be greatly appreciated...!