basic-php-09-error-rev01.php / php
<?php _SERVER['QUERY_STRING']; switch (error_output = "<h1>"Bad Request" Error Page - " . "(Error Code 400)</h1>"; <br>"; error_output .= "<a href=\"mailto:sysadmin@localhost.com\">;" . "Contact</a> the system administrator"; error_output = "<h1>"Authorization Required" " . "Error Page - (Error Code 401)</h1>"; <br>"; error_output .= "<a href=\"mailto:sysadmin@localhost.com\">;" . "Contact</a> the system administrator"; error_output = "<h1>"Forbidden Access" Error Page - " . "(Error Code 403)</h1>"; <br>"; error_output .= "<a href=\"mailto:sysadmin@localhost.com\">;" . "Contact</a> the system administrator"; error_output = "<h1>"Page Not Found" Error Page - " . "(Error Code 404)</h1>"; <br>"; error_output .= "<a href=\"mailto:sysadmin@localhost.com\">;" . "Contact</a> the system administrator"; error_output = "<h1>"Internal Server Error" " . "Error Page – (Error Code 500)</h1>"; <br>"; error_output .= "<a href=\"mailto:sysadmin@localhost.com\">;" . "Contact</a> the system administrator"; error_output = "<h1>Error Page</h1>"; <br>"; error_output .= "You should be <a href=\"index.php\">here</a>"; } ?> <html> <head> <title>Beginning PHP5, Apache, MySQL Web Development</title> </head> <body> <?php echo </body> </html>
(C) Æliens 20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.