BareMetal.com

Baremetal
My Account
Domain Registration Management Services
Web Services
Rates and Specs
Bulk Rates
CGI Library
FAQ
Order Form
Tech Support
Billing Info
Company Info
Charities
Legal Info
Employment
Privacy Statement

BM


Web Services

Variables;

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 Monday, 23-Dec-2024 10:58:55 PST.

  • DATE_GMT
    The current time expressed in Greenwich Mean Time.
    For example, at Greenwich it is currently Monday, 23-Dec-2024 18:58:55 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: 52.14.255.122

  • 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>



 
Home Page    Domain Registration Services    Web Services    Technical Support
About Baremetal    Privacy Statement    Billing Info    Charities
My Account    Legal Info    Search BareMetal

Copyright © 1996-2012, BareMetal.com Inc.
Last updated: Thursday, 28-May-2015 16:14:52 PDT
Last Accessed from: 45.181.23.28
Questions and comments to support@baremetal.com