note 43148 rejected from function.fgetss by vincent

From: Date: Fri, 11 Jun 2004 07:58:43 +0000
Subject: note 43148 rejected from function.fgetss by vincent
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-70917@lists.php.net to get a copy of this message
Note Submitter: chirag_shukla@msn.com ---- 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 "<=".

« previous php.notes (#70917) next »