Re: [PHP] Log file details required !! Help

2003-03-17 Thread Marek Kilimajer
Monil Chheda wrote: Am I MISSING SOMETHING ? $flag = "false"; if ($fp = fopen("web.log","r")) { while (!feof($fp)) { $line = fgets($fp,1024); Here you check if there is an end of string $line, sure there is, there are no infinite strings if (ereg("\$",$line))

[PHP] Log file details required !! Help

2003-03-16 Thread Monil Chheda
Hi, I need to get some details from a LOG file as to which keywords are used... I have attached the LOG file. I heed the details of the following:- 1. Ip Address 2. Date 3. The page that was requested 4. KeyWords used by the Search Engine [ Google / Yahoo seperated ] (ordered BY DATE) in a tabu