A Complete Guide to Web Design

(やまだぃちぅ) #1
Include Variables 259

Server Side
Includes

Include Variables

Web Design in a Nutshell, eMatter Edition

printenv


printenv


Apache 1.2 and higher only.Prints out a listing of all existing variables and their
values.


<!--#printenv -->

set


set


Apache 1.2 and higher only. Sets the value of a variable.


Attributes


var
The name of the variable to be set.


value
The value given to the variable.



Include Variables


These variables are available to theechocommand,if,elif, and to any program
on the server invoked with theexec command.


DATE_GMT
The current date in Greenwich Mean Time


DATE_LOCAL
The current date in the local time zone


DOCUMENT_NAME
The name of the current file (excluding directories)


DOCUMENT_URI
The (%-decoded) URL path of the current file


LAST_MODIFIED
The last modification date and time for the current file


QUERY_STRING_UNESCAPED
Undecoded query string with all shell metacharacters escaped with a back-
slash ()


Other Available Variables


The following are just a few of the many standard Unix environment variables
available to both CGI programs and Server Side Includes:


HTTP_ACCEPT
A list of the media types the client can accept

Free download pdf