Re: File read Parser error
| From: | Franklin van Velthuizen | Date: | Thu, 30 Aug 2001 21:53:40 +0000 |
| Subject: | Re: File read Parser error | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-65379@lists.php.net to get a copy of this message | ||
Gary wrote:
Can someone tell me why I am getting an error for the second line below. It works locally but not live.
<?php
$filename = "www/name/test/free.txt"
$toread = fopen($filename, 'r');
$contents = fread($toread, filesize($filename));
fclose($toread);
echo "$contents";
?>
It would be useful if you would point out which error it is you are encountering.
/ franklin
--
Franklin van Velthuizen fv@ebiris.se +46-(0)70-6786613
Ebiris Applications AB http://www.ebiris.se/ +46-(0)19-109917