Hi guys. I'm writing a PHP script to search through refferral logs from IIS/Apache and pull out all the google URLS and strip out the q=<text> part. Then I need it to output this to the user. How would I go about doing this? Currently I've got it to open the file and pop the contents into a variable, I can print this out fine. Cheers
awk would be faster - man awk. Consider storing the results in a DB if they're big log files and/or the page will get lots of hits.