Web hosting reseller - Figure 9-2 How It Works You have just
Figure 9-2 How It Works You have just created a simple error handling PHP page. You created a PHP page that will handle the most common errors that servers encounter. By using the query string information along with the switch() statement, you are able to display custom error message pertinent to the error itself. This is useful if you don t want Apache to display its somewhat cryptic-looking error message to your users. Apache s ErrorDocument: Advanced Custom Error Page Up until this point, you ve been showing the user a custom error message only. You can do countless other things, such as e-mailing the administrator or Webmaster of the site so he or she can look into the issue further should there be a problem with certain pages. This is a great way for you to keep track of your pages without having to check up on the server periodically. More than likely, if you haven t received any error e-mails, there haven t been problems with your server. 256 Chapter 9
We recommend you use shared web hosting services, because many users agree that it is cheap, reliable and customer-satisfying webhost.