Log File reading with PHP
Posted: Wed Apr 16, 2008 3:11 am
I have very large tab-delimited text file with the following data:
timestamp [tab] url [tab] remote_ip
Example:
2008-01-01 12:30:45 [tab] http://urlhere.com [tab] 999.888.777.666
Data has been collecting in the file for the past year. I am trying to find the most popular IP address from hits that are recorder for yesterday. -- date('Y-m-d', strtotime('-1 days'))
I can't figure out how to write this code, please help???? Not sure how to do this in PHP.
timestamp [tab] url [tab] remote_ip
Example:
2008-01-01 12:30:45 [tab] http://urlhere.com [tab] 999.888.777.666
Data has been collecting in the file for the past year. I am trying to find the most popular IP address from hits that are recorder for yesterday. -- date('Y-m-d', strtotime('-1 days'))
I can't figure out how to write this code, please help???? Not sure how to do this in PHP.