Re: note 8878 added to fgets
| From: | Zak Greant | Date: | Tue, 03 Oct 2000 15:33:20 +0000 |
| Subject: | Re: note 8878 added to fgets | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-5992@lists.php.net to get a copy of this message | ||
Please don't post support questions to the manual notes. Instead, write php-general@lists.php.net (subscribe at php-general-subscribe@lists.php.net)
- zak
At 02:05 AM 10/4/00 +0000, xlocked@robynet.com.br wrote:
i want get 5 lines of one HTMl
example:
<?
$fd = fopen ("http://www.host.com.br/page.php", "r");
while (!feof ($fd)) {
for($x=0; $x<6; $x++) {
$buffer = fgets($fd, 4096);
if ($x = 5) {
On the line above, you are assigning $x a value of 5.
break;
}
echo $buffer;
}
fclose ($fd);
}
?>
this wrong
how i correct this ?
http://www.php.net/manual/function.fgets.php
--
PHP Notes Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-notes-unsubscribe@lists.php.net
For additional commands, e-mail: php-notes-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net