error log file

Ditutup Disiarkan Mar 19, 2003 Dibayar semasa penghantaran
Ditutup Dibayar semasa penghantaran

I have an error log code that indicateds the file names where the errors are but does not indicate the name of the bad links in these files. Here is an example: 404|16-Mar-2003|07:13:07|[url removed, login to view] 404|16-Mar 2003|07:07:46|[url removed, login to view] My files contain dozens of links. Without the name of the bad link, I can't fix the problem

## Deliverables

I have 2 files to create this error log: [url removed, login to view] and [url removed, login to view] as follows: (some symbols in the codes may have been corrrupted when I converted it from netscape composer to a text editor for posting this message in a clear manner. For example,

[url removed, login to view]

include("[url removed, login to view]");

$temp = $HTTP_REFERER;

$edate = gmdate("d-M-Y");

$etime = date("H:i:s");

switch ($QUERY_STRING) {

case 401:

$etype = "401";

$eloc = $error_401;

break;

case 403:

$etype = "403";

$eloc = $error_403;

break;

case 404:

$etype = "404";

$eloc = $error_404;

break;

case 500:

$etype = "500";

$eloc = $error_500;

break;

default:

$etype = "000";

}

$message="There is $etype error url= $[url removed, login to view]";

header ("Location: $eloc");

if($txtlog==1) {

$fp = fopen($fname, "a");

$lock = flock($fp, LOCK_EX);

if ($lock) {

fwrite($fp, "$etype|$edate|$etime|$temp\n");

flock($fp, LOCK_UN);

}

fclose($fp);

}

if($sndmail==1) {

mail($toaddr,$subject,$message);

}

if($sndicq==1) {

mail("$[url removed, login to view]",$subject,$message);

}

if($sndpage==1) {

mail("$pagerat$pageco",$subject,$message);

}

?>

---------------

[url removed, login to view]

//

// This is the to address and subject when the script sends you

// errors via email. If the email option is set to 1.

//

$toaddr = 'my email address';

$subject = "[Website] Error Message";

//

// Send email when there is an error? 1 = YES 0 = NO

//

$sndmail = 0;

//

// Send error to your ICQ client? 1 = YES 0 = NO

//

$sndicq = 0;

//

// Your ICQ account number.

//

$icqid = "########";

//

// Send a text page to your alphanumeric pager? 1 = YES 0 = NO

//

$sndpage = 0;

//

// Enter your pager number and pager co. email address.

//

$pager = "0000000000";

$pageco = "[url removed, login to view]";

//

// Log errors to text log? 1 = YES 0 = NO

// Note: It is suggested that this only be done if you do

// not have access to a MySql database.

//

$txtlog = 1;

//

// File name to log to.

//

$fname = "[url removed, login to view]";

//

// Enter in the location of your custom error pages.

// You may use a path (/errors/[url removed, login to view] or a

// URL ([url removed, login to view]).

//

$error_401 = "/errors/[url removed, login to view]";

$error_403 = "/errors/[url removed, login to view]";

$error_404 = "/errors/[url removed, login to view]";

$error_500 = "/errors/[url removed, login to view]";

?>

## Platform

xp

Amazon Web Services Kejuruteraan MySQL PHP Kejuruteraan Perisian Ujian Perisian Pengehosan Web Pengurusan Laman Web Ujian Laman Web

ID Projek: #2917385

Tentang projek

2 cadangan Projek jarak jauh Aktif Mar 31, 2003

2 pekerja bebas membida secara purata $40 untuk pekerjaan ini

lkfraser

See private message.

$63.75 USD dalam 14 hari
(1 Ulasan)
2.8
anpvw

See private message.

$17 USD dalam 14 hari
(1 Ulasan)
0.2