handle error


/**
* Code used to display an error message.
*/

$errortype = array (
1 => "Error",
2 => "Warning",
4 => "Parsing Error",
8 => "Notice",
16 => "Core Error",
32 => "Core Warning",
64 => "Compile Error",
128 => "Compile Warning",
256 => "User Error",
512 => "User Warning",
1024=> "User Notice",
2048=> "Strict"
);

$err = "Date: ".date("Y-m-d H:i:s (T)")."\n";
$err .= "Error number: ".$errno."\n";
$err .= "Error type: ".$errortype[$errno]."\n";
$err .= "Error message: ".$errmsg."\n";
$err .= "Filename: ".$filename."\n";
$err .= "Line number: ".$linenum."\n";

echo "\n";
echo "\n";
echo "$gametitle\n";
echo "\n";
echo "\n";
echo "\n";
echo "\n";
echo "\n";
echo "\n";

echo "
";
echo "";
echo "\n";
echo "
Result
";
echo "An error occured, maybe this part of the game is under maintenance, you should retry.
echo "".nl2br($err)."\n";

if($uservals["ROLE"] == "Y")
{
echo "
\n";
var_dump(debug_backtrace());
echo "
\n";
}

echo "

\n";
echo "[Retry]\n";
exit;
?>

Wyszukiwarka

Podobne podstrony:
handle error
handle error
handle error
old error handler
function restore error handler
function xslt set error handler
function set error handler
function set error handler
function set error handler
set error handler
function restore error handler
function mysql error
Handleiding
error
function error reporting

więcej podobnych podstron