The Code-Bin
Find Phrase in Logfile
Posted by: Stephen | May 6, 2007 @ 4:03pm

PHP Code



Syntax Highlighting





Author Comments
This script will search your logfile for a certain phrase.

Usage: find-phrase.php?phrase=Googlebot&file=c:/progra~1/abyssw~1/log/access.log

You can also use it to display just today's web traffic.
find-phrase.php?phrase=06/May/2007&file=c:/progra~1/abyssw~1/log/access.log
Rating


4.47 / 8
849 Votes