note 43148 added to function.fgetss

From: Date: Fri, 11 Jun 2004 00:14:34 +0000
Subject: note 43148 added to function.fgetss
Groups: php.notes 
Request: Send a blank email to php-notes+get-70905@lists.php.net to get a copy of this message
fgetss interrupted when it saw the beginning of an unknown tag (or maybe it did not find the corresponding tag) e.g. in the process of downloading a webpage having a text: "SOMETEXT <= 1/4", with the following code: $fp = fopen ("http://someurl","r"); $fp1 = fopen ("somefile.txt","w"); while (!feof($fp)) { $in = fgetss ($fp,1024); fputs ($fp1, $in, strlen($in)); } fgetss will download everything till it reaches "<=". ---- Manual Page -- http://www.php.net/manual/en/function.fgetss.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+43148 Delete -- http://master.php.net/manage/user-notes.php?action=delete+43148&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+43148&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#70905) next »