Return CGI Library
These are provided by the server software we use. As such they are of
limited portability (NCSA and APACHE servers at least). However they
run fast and are easy to use. :-)
Simply include the following text in your page where you want the
variable to appear:
<!--#echo var="Variable-name" -->
Here is the list of currently supported variables:
-
DOCUMENT_NAME
The name of the current file.
For example, this document is variables.html.
-
DOCUMENT_URI
The virtual path to the file. (Trailing part of the URL)
For example, this URL ends with /gadgets/variables.html.
-
DATE_LOCAL
The current time, expressed in the local timezone.
For example, it is currently Friday, 22-Nov-2024 02:23:26 PST.
-
DATE_GMT
The current time expressed in Greenwich Mean Time.
For example, at Greenwich it is currently Friday, 22-Nov-2024 10:23:26 GMT.
-
LAST_MODIFIED
The last modification date of the current document.
For example, this document was last modified Thursday, 28-May-2015 16:14:52 PDT.
- REMOTE_ADDR
The IP address of the visitor requesting the page.
example: Your IP address seems to be: 18.189.186.247
- HTTP_REFERER
The page that contained the link the visitor clicked on to get to
the current page. e.g. the "refering" page.
Your came from this page: (none)
- other variables
There are other variables available, to see what is available
try putting the following HTML in your page:
<PRE><!--#printenv --></PRE>
|