The Error Master installation documentation. Download Errormaster Now |
Help for setting up the script. |
top Version Program Name : Error Master Version : 1.0 Last Modified : Feb 20 2005 Author : Ridvan B. segate@gmail.com top Features Script replace the nasty looking error pages. Explain the web error to the visitor in a web page. Custom header and footer. And much more......... top System Requirements A unix (linux) web server. Php 4.03 or higher. A web server that is compatible with Apache version 1.3 or higher (most are). A web page that allows custom PHP. The ability to write custom .htaccess files. A program on the web server like sendmail. top Installation and Configuration Open the error.php with your favorite text editor. $redir="http://yourdomain.com/welcome.php"; // Link Address e.g : http://yourdomain.com/welcome.php $imgdir="http://yourdomain.com/hata/error.gif"; // Error Image e.g : http://yourdomain.com/images/error.gif Make a directory in your root directory something like hata. Upload everything in the same context to your /hata directory. Upload everything in ASCII mode except the images upload the images in BIN mode (be sure of that other why the script is not working) Note : For the Windows users. Auto detect is many times not good working. top Files and Permissions error.php error.gif footer.php header.php top Setting up Custom Error Pages Make a text file named .htaccess, put the lines below in it and upload it in the main directory. For the windows users a make a file like member.htaccess, upload it to the server and rename it in .htaccess ErrorDocument 301 /hata/error.php?301 ErrorDocument 302 /hata/error.php?302 ErrorDocument 401 /hata/error.php?401 ErrorDocument 402 /hata/error.php?402 ErrorDocument 403 /hata/error.php?403 ErrorDocument 404 /hata/error.php?404 ErrorDocument 500 /hata/error.php?500 ErrorDocument 501 /hata/error.php?501 Were is /hata/error.php the URI to your error.php (not the full URL). This script can use all the error codes All the possible error codes I now are. 100 => 'Continue', 101 => 'Switching Protocols', 200 => 'OK', 201 => 'Created', 202 => 'Accepted', 203 => 'Non-Authoritative Information', 204 => 'No Content', 205 => 'Reset Content', 206 => 'Partial Content', 300 => 'Multiple Choices', 301 => 'Moved Permanently', 302 => 'Moved Temporarily', 303 => 'See Other', 304 => 'Not Modified', 305 => 'Use Proxy', 400 => 'Bad Request', 401 => 'Unauthorized', 402 => 'Payment Required', 403 => 'Forbidden', 404 => 'Not Found', 405 => 'Method Not Allowed', 406 => 'Not Acceptable', 407 => 'Proxy Authentication Required', 408 => 'Request Timeout', 409 => 'Conflict', 410 => 'Gone', 411 => 'Length Required', 412 => 'Precondition Failed', 413 => 'Request Entity Too Large', 414 => 'Request-URI Too Large', 415 => 'Unsupported Media Type', 500 => 'Internal Server Error', 501 => 'Not Implemented', 502 => 'Bad Gateway', 503 => 'Service Unavailable', 504 => 'Gateway Timeout', 505 => 'HTTP Version Not Supported', top Copyright Information Copyright © 2005. Ridvan B. All Rights Reserved. This Version is a Freeware release. It is free to use for particular purpose, non-profit and commercial organizations. You can change or modify this script if as you want it. However, modified versions cannot be sold or distributed. You cannot alter the copyright and "powered by" notices throughout the scripts. These notices must be clearly visible to the end users. By using this program you agree to conditions above. top Warranty Disclaimer THIS PROGRAM IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL, BUT WITHOUT ANY WARRANTY. WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. |
![]() PHPClasses.org |