CGI Tricks
Code bits that you can add to your page to enhance its functionality.


    Last Modified:

    To add the last modified date to your page without having to change it manually every time, add the following line of code to your page wherever you'd like the date to appear:

    <!--#echo var="LAST_MODIFIED"-->

    Example: This page was last modified on
    Monday, 28-Jan-2008 00:48:36 CST

    Requirements: Your page MUST end with one of the following extensions: .sht or .shtml

    
    
    Counters:

    To add a counter to your page to keep track of how many visitors you've had, add the following line of code to your page:

    <!--#exec cgi="/cgi-bin/mcount.scgi"-->

    Example: This page has been accessed [an error occurred while processing this directive] times.

    Requirements: Your page MUST end with one of the following extensions: .sht, .shtml, or .shtm
    
    
    If you get pretty comfortable with these tricks and would like to learn more, visit NCSA's Server Side Includes page.