note 8878 deleted from fgets by zak

From: Date: Wed, 04 Oct 2000 03:37:53 +0000
Subject: note 8878 deleted from fgets by zak
Groups: php.notes 
Request: Send a blank email to php-notes+get-5993@lists.php.net to get a copy of this message
i want get 5 lines of one HTMl example: &lt;? $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 ?

« previous php.notes (#5993) next »