• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 13. Server Side Includes > Using Environment Variables

13.4. Using Environment Variables

In the example in the previous section, the information placed in the document was prepared ahead of time and saved in a file on the server for future use.

Another type of information that can be used by an SSI element is environment variables. These are bits of information that the operating system (or the HTTP server) always keeps track of and makes available for use by CGI programs and SSI. The current date and time, the modification times of local files, and the user's browser version are all examples of environment variables. To use one in an SSI, call it by its specific variable name (DATE_LOCAL , LAST_MODIFIED, and HTTP_USER_AGENT, respectively, for the above examples) in the command. Note that variable names vary for different server software.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint