Re: [PHP] Help with file read

2002-05-19 Thread Jason Wong
On Sunday 19 May 2002 18:21, Josh Edwards wrote: > Can someone look and help > > I have a function that returns the date in this format > [10/Apr/2002:01:17:27 +1000] but I'm having trouble returning the last date > in the file. [snip] > $lastdate = getmydate($fcontents[count($fcontents)-1]);

[PHP] Help with file read

2002-05-19 Thread Josh Edwards
Can someone look and help I have a function that returns the date in this format [10/Apr/2002:01:17:27 +1000] but I'm having trouble returning the last date in the file. $totalhits = count($fcontents); $filename = ("combined_log"); //open file $fcontents = file($filename); //read into arra