Bad Request

Error Type: 400

The URL that you requested — http://'.$server_name.$requested_url.' — does not exist on this server. You might want to re-check the spelling and the path.

An e-mail has been sent to me regarding the problem. I apologize for any inconvenience caused and will do all I can to fix the error as soon as possible.

You can use the menu at the top of the page or at the right to navigate to another section.

'; break; # Error 401 - Authorization Required case 401: $errorname = 'Error 401 - Authorization Required'; $errordesc = '

Authorization Required

Error Type: 401

The URL that you requested requires pre-authorization to access.

An e-mail has been sent to me regarding the situation and, if it is an error, I will do all I can to fix it as soon as possible.

'; break; # Error 403 - Access Forbidden case 403: $errorname = 'Error 403 - Access Forbidden'; $errordesc = '

Access Forbidden

Error Type: 403

Access to the URL that you requested is forbidden.

An e-mail has been sent to me regarding the situation and, if it is an error, I will do all I can to fix it as soon as possible.

'; break; # Error 404 - Page Not Found case 404: $errorname = 'Error 404 - Page Not Found'; $errordesc = '

File Not Found

Error Type: 404

Ooops! The page you are looking for — http://'.$server_name.$requested_url.' — cannot be found. This may be because:

An e-mail has been sent to me regarding the problem. If you feel the URL you entered is correct, you can contact me by sending an e-mail to '."$email".', mentioning the error message received and the page you were trying to reach. I apologize for any inconvenience caused and I will do all I can to fix the error as soon as possible.

You can use the menu at the top of the page or at the right to navigate to another section.

'; break; # Error 500 - Server Configuration Error case 500: $errorname = 'Error 500 - Server Configuration Error'; $errordesc = '

Server Configuration Error

Error Type: 500

The URL that you requested — http://'.$server_name.$requested_url.' — resulted in a server configuration error. It is possible that the condition causing the problem will be gone by the time you finish reading this.

An e-mail has been sent to me regarding the problem. If this problem persists please report it to me by sending an e-mail to '."$email".', mentioning the error message received and the page you were trying to reach. I apologize for any inconvenience caused and I will do all I can to fix the error as soon as possible.

'; break; # Unknown error default: $errorname = 'Unknown Error'; $errordesc = '

Unknown Error

The URL that you requested — http://'.$server_name.$requested_url.' — resulted in an unknown error. It is possible that the condition causing the problem will be gone by the time you finish reading this.

An e-mail has been sent to me regarding the problem. If this problem persists please report it to me by sending an e-mail to '."$email".', mentioning the error message received and the page you were trying to reach. I apologize for any inconvenience caused and I will do all I can to fix the error as soon as possible.

'; } // Display selected error message echo($errordesc); if (!$referring_url == '') { echo '

<< Go back to previous page.

'; } else { echo '

<< Go back to previous page.

'; // E-mail section. Delete if you do not want to be sent e-mail notifications of errors. $datetime = date("l, F d, Y - h:i:s A T"); $message .= 'The following error was received on '.$datetime.''; $message .= '

'.$errorname.''; $message .= '
Requested URL: http://'.$server_name.$requested_url.''; $message .= '
Referring URL: http://'.$referring_url.''; $message .= '

IP Address: '.$referring_ip; $to = "$email"; $subject = "$errorname"; $headers = "From: $email\r\n"; $headers .= "Content-type: text/html\r\n"; mail($to,$subject,$message,$headers); // mail($to,"$subject2 -- $errorname",$referring_ip,$headers); } // End of e-mail section. ?>