/**

popular collection of scripts for all

*/
/** Search */

Error Handling

 }

Writing Debuggable Code

Hits: 13
*****
0.0

Mail on 404

Hits: 16
*****
0.0
For those of you who take on
This simple, free script,
A simple snippet of php code
A tutorial that shows you how
massive coding tasks such as
along with a few extra lines
to insert in your custom 404
to set up your site so that
creating an entire site from
in your .htaccess file,
error page. It will send an
you receive an email
scratch, you'll notice that
allows the building of
e-mail when a visitor
whenever a visitor
it tends to become tedious
custom error pages
encounters a 404 page and
encounters a file not found
to debug your code unless
on-the-fly. The coding
certain conditions are met.
error. Can easily be adopted
you've taken a few
principles and .htaccess
The tutorial explains how
for other errors such as 400
precautionary measures. This
requirements are discussed
the script works and where
(Bad Request), 401
tutorial will start you off
with examples, and a
to insert the code.
(Authorization Required),
in the right direction. It
complete and commented PHP
 
403 (Forbidden), and 500
won't make your code
script is available for
 
(Internal Server Error).
debuggable for you, but
download. The script allows
 
Requires an Apache web
you'll have an idea on how
for email notification to
 
server with PHP installed.
to do it. Most code can be
the webmaster when errors
 
 
modified to fit the schema
occur, and gives users a
 
 
suited for debugging fairly
link to redirect them back
 
 
easily, but this guide is
to the site's homepage.
 
 
written with a clean slate
 
 
 
in mind; it will describe
 
 
 
the process of preparing
 
 
 
your code to be easily
 
 
 
debuggable from scratch.
 
 
 


Date: Feb, 05 2006


Date: Oct, 04 2005


Date: Oct, 22 2004


Date: Aug, 20 2004
Custom error documents are a
 
 
 
valuable tool to have. Using
 
 
 
this tutorial you'll be able
 
 
 
to redirect any user to a
 
 
 
specified location on your
 
 
 
site if they have reached an
 
 
 
error such as Error 404 -
 
 
 
Document Not Found or Error
 
 
 
500 - Internal server Error.
 
 
 
If you've re-designed your
 
 
 
site recently or even moved
 
 
 
some files around, this
 
 
 
tutorial will show you how
 
 
 
to use PHP and Apache's
 
 
 
htaccess file to avoid
 
 
 
losing traffic.
 
 
 


Date: Jul, 25 2002
{ Copyright } ©2006 NuclearScripts.com