September 2002
Intermediate to advanced
544 pages
13h 6m
English
CGI offers you a lot of flexibility in creating custom error documents that you just don’t get from building a plain HTML error document. The problem with straight HTML is that no matter which page the user requested, or how he got to the page, he still gets the same error message. Through the use of CGI scripts, you can create dynamic error documents that provide customized content depending on what the user is looking for.
When a CGI program is called as the result of an error, Apache (and other NCSA-compliant Web servers) set three environment variables that aren’t part of the normal CGI environment. These variables contain information about the user’s ...
Read now
Unlock full access