note 25705 deleted from function.fopen by nlopess
| From: | nlopess@php.net | Date: | Sat, 03 Apr 2004 14:34:49 +0000 |
| Subject: | note 25705 deleted from function.fopen by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-67566@lists.php.net to get a copy of this message | ||
Note Submitter: zman@inbox.ru
----
feof does NOT work together with
fopen of an URL,
it is only functional together with files on host.
This work:
<?PHP
$fd=fopen("http://www.server.com/index.html","r");
while ($line=fgets($fd,1000))
{
$alltext.=$line;
}
fclose ($fd);
?>