Re: [PHP] log analysis

2002-05-10 Thread Josh Edwards
Thanks for replying Miguel I'm new to php and wonder how I would check if the first field is an IP address. Do I open the file fget it and then use a regular expression to check. Also if I want to break up the first line of my array what delimiter do I look at as the fields in the log are sep

Re: [PHP] log analysis

2002-05-10 Thread Miguel Cruz
On Fri, 10 May 2002, Josh Edwards wrote: > I'm working on using php to analyse an access log on an apache server. > > If a user inputs a file path I want to be able to use PHP to determine if > it's a log file. Is there a function that will reject if it's not a binary > file. If it's a binary fi