note 52568 rejected from function.fopen by nlopess
| From: | nlopess@php.net | Date: | Fri, 06 May 2005 18:52:16 +0000 |
| Subject: | note 52568 rejected from function.fopen by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-89030@lists.php.net to get a copy of this message | ||
Note Submitter: matthewcomp at hotmail dot com
----
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;
?>