note 25705 added to function.fopen
| From: | zman at inbox dot ru | Date: | Wed, 02 Oct 2002 17:37:28 +0000 |
| Subject: | note 25705 added to function.fopen | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-37564@lists.php.net to get a copy of this message | ||
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);
?>
--
http://www.php.net/manual/en/function.fopen.php
http://master.php.net/manage/user-notes.php?action=edit+25705
http://master.php.net/manage/user-notes.php?action=delete+25705
http://master.php.net/manage/user-notes.php?action=reject+25705