Re: File read Parser error
| From: | John Meyer | Date: | Thu, 30 Aug 2001 22:51:14 +0000 |
| Subject: | Re: File read Parser error | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-65381@lists.php.net to get a copy of this message | ||
At 11:53 PM 8/30/01 +0200, you wrote:
Gary wrote:my guess would be that you need a semicolon on the first line.Can someone tell me why I am getting an error for the second line below. It works locally but not live.It would be useful if you would point out which error it is you are encountering.<?php $filename = "www/name/test/free.txt" $toread = fopen($filename, 'r'); $contents = fread($toread, filesize($filename)); fclose($toread); echo "$contents"; ?>