| #1-3 = |
Initializing variables for easy customization of the
user (webmaster) setting this script up |
| #4
= |
Opens
the log file to read in data |
| #5
= |
Puts
the read data into @data |
| #6
= |
Closes
the log file once finished |
| #7
= |
Initializes
the variable $url with a table row for easy use later
in the script |
| #8
= |
Initializes the count variable to 0 before it enters into
the foreach loop for each line of the log file |
| #10
= |
Opens
the log file to be written to this time |
| #11
= |
for
each block cycles through the lines in the log file |
| #12-17
= |
processes
certain statements to format the html tables for the output
of the log file...it then accumulates the count variable
to calculate the amount of hits for the entry being added
to the file...after calculation it then writes the line
to the log file for storage |
| #19-26
= |
processes
the other conditional statements based on certain aspects
of the logic set for the end result writing to the log
file |
| #29
= |
closes
the log file because it is finished writing to the file |
| #30-33
= |
based
on the value you set in $visible at the top of the script...the
counter will be displayed or not.... 1=display 0=not |