note 36963 rejected from function.fwrite by pollita
| From: | pollita@php.net | Date: | Wed, 29 Oct 2003 01:21:12 +0000 |
| Subject: | note 36963 rejected from function.fwrite by pollita | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-59451@lists.php.net to get a copy of this message | ||
Note Submitter: polygame@163.net
----
fwrite bug:
PIII 1G RAM APACHE+PHP ON WINDOWS 2K SERVER.
this code have error:
//************************
$buffer = implode("",file("http://flash.hifoo.com/resource/0/1.swf"));
print strlen($buffer); //buffer's length is 46293 bytes
print "<br />";
//***************************
//now occor erro at fellow code
if($fp = fopen("d:/1.swf","w+"))
{
fwrite($fp,$buffer,strlen($buffer));
fclose($fp);
}
print filesize("d:/1.swf"); // is 46540 bytes