note 8878 added to fgets

From: Date: Wed, 04 Oct 2000 02:05:23 +0000
Subject: note 8878 added to fgets
Groups: php.notes 
Request: Send a blank email to php-notes+get-5990@lists.php.net to get a copy of this message
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) { break; } echo $buffer; } fclose ($fd); } ?> this wrong how i correct this ? http://www.php.net/manual/function.fgets.php

« previous php.notes (#5990) next »