note 52568 added to function.fopen
| From: | matthewcomp at hotmail dot com | Date: | Fri, 06 May 2005 03:00:40 +0000 |
| Subject: | note 52568 added to function.fopen | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-88983@lists.php.net to get a copy of this message | ||
Im not sure I understand this function. When I type the following it echos the value of $hi which
appears to be "Resource id #5". I want it to set $hi to be the contents of the file
instead. What am I doing wrong or how can this be accomplished?
<?php
$hi = fopen("http://www.azoundria.com/hi.txt",
"r"); echo $hi;
?>
----
Manual Page -- http://www.php.net/manual/en/function.fopen.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+52568
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+52568&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+52568&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+52568&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+52568&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+52568&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+52568&report=yes
Search -- http://master.php.net/manage/user-notes.php