RE: [PHP] File read Parser error
| From: | Don Read | Date: | Thu, 30 Aug 2001 21:08:48 +0000 |
| Subject: | RE: [PHP] File read Parser error | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-65374@lists.php.net to get a copy of this message | ||
On 30-Aug-2001 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"
^ semi-colon ?
> $toread = fopen($filename, 'r');
> $contents = fread($toread, filesize($filename));
> fclose($toread);
> echo "$contents";
> ?>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
--
Don Read dread@texas.net
-- It's always darkest before the dawn. So if you are going to
steal the neighbor's newspaper, that's the time to do it.