DPCDPC
DPC

Features

Currently, DPC offers various features for the do-it-yourself types, and we will be adding additional resources such as a FAQ page, more HTML snippets, etc. in the near future. Suggestions and feedback are always welcome!


Add HTML code to your website for various features:


Page Counter

This allows you to count and display the number of times that a page has been accessed.

Add the following text to your page where you want the access count to appear:

<!--#exec cgi="/cgi-bin/counter"-->

Wherever you position the code, the message will be "this page has been accessed 7465 times. " (figure will vary)

There are a couple of variations...

/cgi-bin/counter
Prints out the number of accessess.

/cgi-bin/counter-ord
Prints out the number of accessess with an ordinal suffix. (e.g. "st", "nd", "rd", ...) For example: Yours is the access of this page.

/cgi-bin/counter-nc and /cgi-bin/counter-ord-nc
These are the same as the previous definitions, but do not increment the page count. This is useful for putting the page counter in several places on one page. Note that the last reference (on the page) should not have the -nc suffix or the access won't be counted.

/cgi-bin/counter-nd this will track hits to your page, but does not display the count to your readers. To see the access count of your pages use the -nd function you have to view the hit counters found in the /sec-bin/ part of your website.

Last accessed

This prints out the address of the last browser to load your page.

Simply include the following text in your page where you want the variable to appear:

<!--#exec cgi="/cgi-bin/lastaccess"-->

Variables

We are able to offer you these features that are of limited portability (NCSA and APACHE servers at least). However they 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

DOCUMENT_URI
The virtual path to the file. (Trailing part of the URL) For example, this URL ends with

DATE_LOCAL
The current time, expressed in the local timezone. For example, it is currently

DATE_GMT
The current time expressed in Greenwich Mean Time. For example, at Greenwich it is currently

LAST_MODIFIED
The last modification date of the current document. For example, this document was last modified