Re: Where's the error?
| From: | Josh Edwards | Date: | Tue, 14 May 2002 03:01:38 +0000 |
| Subject: | Re: Where's the error? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-97474@lists.php.net to get a copy of this message | ||
Thanks heaps for your help I really appreciate it. I have made the changes
you suggested but now I only get a blank screen.
function getmydate($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 (!empty($line))
{
$currentdate = getmydate($line);
echo $currentdate;
}
}