I'm fairly new to PHP. What I'd like to do is pull the number of Total Visits from Webalizer logs, and use it as my counter. I figure I need to:
1) Check, from a static starting point, which logfiles exist (i.e. starting with "usage_200203.html", go through each month till no more),
2) Pull the numbers, stopping at the first non-number, after the static text string (i.e. either find "Total Visits</FONT></TD>
<TD ALIGN=right COLSPAN=2><FONT SIZE="-1"><B>" and get all the number characters immediatly following. Or find "Total Visits", skip 57 characters, then get numbers.)
3) Add the numbers of the various log files together.
I have no clue how to do # 2. I found stuff on fread or some such, and could problably get that far, but still wouldn't know how to check the next characters...
And help would be appreciated.