Re: file reading
| From: | Philip Hallstrom | Date: | Tue, 27 Aug 2002 18:09:03 +0000 |
| Subject: | Re: file reading | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-114272@lists.php.net to get a copy of this message | ||
You want "r" instead of "w+". I'd suggest reading the Filesystem
Functions section of the manual again...
good luck!
-philip
On Tue, 27 Aug 2002, phper wrote:
> how do I read the contents of a file.
>
> $FileStream = fopen("webmaster/forum".$Forum."/forumtopics.txt",
> "w+");
> $line = fgetss ($FileStream, 255);
> print ("number is: ".$line." <br> ");
>
> fclose($FileStream);
>
> always returns nothing
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>