Where's the error?

From: Date: Tue, 14 May 2002 02:32:13 +0000
Subject: Where's the error?
Groups: php.general 
Request: Send a blank email to php-general+get-97468@lists.php.net to get a copy of this message
This is meant to grab a date out of a log file from the first line of the array but I'm getting a parse error on line 13. Any ideas? function getdate($hit) { $single = explode (" ",$hit); return $single[3].$single[4]; } $filename = ("combined_log"); fopen ($filename, "r"); $fcontents = file($filename); $limit = 1; for ($i = 0; $i <= $limit; $i++) { $line = $fcontents[i]; if ($line! = " ") { $currentdate = getdate($line); echo $currentdate; } }

« previous php.general (#97468) next »