All you need is any executable folder ( cgi-bin ) and a log file. The log file can be any ascii file.
Configuration
On line 21 of the script, you will find a variable named $LOG Enter the absolute path to your log file in this variable. If you do not know the absolute path, the script will print the Root path as returned by your server. If that is not the correct path, enter the path you see in your FTP client. It usually looks something like :
/home/username/access_log
Lines 23 to 28 of the script allow you to set the default display values. These are the values used to display the log file when initially called.
This script simply displays a log file. It does not edit or manipulate the file in any way. When you call the script the first time round, the default display values will be used. You can change the default values to suit your needs. The three display variables are :
$start
$end
$wrap
Change these numbers to suit your needs.
$start can be any positive number including zero (0) which is the first line of your log.
$end can be any positive number.
$wrap can be either 1 to turn Wrap off or 2 to turn Wrap on.