Array problems again
| From: | Josh Edwards | Date: | Fri, 17 May 2002 13:20:53 +0000 |
| Subject: | Array problems again | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-98073@lists.php.net to get a copy of this message | ||
Here's a sample of a weblog. I have a loop that extracts the request ie "Get
/A1.php
How do I get the top ten requests and how many time these were requested
after looping thru the whole file. Can you set up an array that is self
populating if a string doesn't match an element in the array or is there a
better way?
203.29.154.13 - - [08/May/2002:21:21:07 +1000] "GET /A1.php
HTTP/1.1" 200417 "-" "Mozilla/4.0 (compatible; MSIE 5.5; Windows 98)"
Any help is greatly appreciated.
J