esthera
02-05-2007, 05:24 PM
I have the following error function:
function myErrorHandler($errno, $errstr, $errfile, $errline)
{
// put your error in file.
$filename = 'error.txt';
global $sql;
$errsql=$sql;
$errorstr = $errno.$errstr.$errfile.$errline."\n\r".$errsql. "\n\r\n\r\n\r";
//echo $errrorstr;
$handle = fopen($filename, 'a');
fwrite($handle, $errorstr);
fclose($handle);
}
How can I get this to not store warnings such as 8Undefined index: HTTP_REFERER ?
function myErrorHandler($errno, $errstr, $errfile, $errline)
{
// put your error in file.
$filename = 'error.txt';
global $sql;
$errsql=$sql;
$errorstr = $errno.$errstr.$errfile.$errline."\n\r".$errsql. "\n\r\n\r\n\r";
//echo $errrorstr;
$handle = fopen($filename, 'a');
fwrite($handle, $errorstr);
fclose($handle);
}
How can I get this to not store warnings such as 8Undefined index: HTTP_REFERER ?