note 23277 deleted from function.feof by philip
| From: | philip@php.net | Date: | Fri, 18 Oct 2002 19:08:12 +0000 |
| Subject: | note 23277 deleted from function.feof by philip | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-38273@lists.php.net to get a copy of this message | ||
fwrite($fshadow,$y) is the cause of time exceed. Maybe to many open files are the reason of not
checking the feof.
<?
$fp2=fopen("saints.html","r");
$x="0";
while(!feof($fp2))
{
while($x!="\n")
{
$x=fgetc($fp2);
$piece=$piece.$x;
}
$counter=1;
$fshadow=fopen("IEnew".$counter.".php","w");
$fsr=fopen("IE.php","r");
$xsum="<? \n".chr(36)."name=".$piece;
fwrite($fshadow,$xsum);
while(!feof($fsr))
{
$y=fgetc($fsr);
echo $y;
fwrite($fshadow,$y);
}
rewind($fsr);
fclose($fsr);
fclose("IEnew".$counter.".php");
$counter++;
}
fclose($fp2);
?>