Time Since Page Last loaded

Warning: Abandoned
This page/script has been classified as abandoned and will no longer be updated. I will keep this page here indefinitely as a reference, but it will no longer be updated and I no longer offer support of any kind regarding content found on this page.

Description

  • Timer logs then displays the number of days, hours, minutes, and seconds since the page was lasted loaded by a visitor.

Download

  • savetimer.zip (all files plus instructions in one zip)

Terms of Use

  • This script was abandon by me in 2002 and is listed as public domain.

Instructions

Open timer.cgi and set the variables

  • Set the path to perl. On most systems it's #!/usr/bin/perl but varies by host
  • Set the path to your log file. currently set at "timer.txt" but can be set to anything

Upload timer.cgi and timer.txt

  • Upload all the files in ASCII mode (the cgi files MUST be uploaded in ASCII, and for the others it's preferable)
  • CHMOD timer.cgi to 755 and the timer.txt to 766.

Call the timer from your HTML (or SHTML) page

  • To call <!--#include virtual="/cgi-bin/timer.cgi"-->
    (if that's where you put the script)