|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-08-10 15:37 UTC] stas@php.net
[2000-08-10 16:45 UTC] stas@php.net
[2000-08-19 12:14 UTC] joey@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Nov 01 19:00:02 2025 UTC |
/* Greetings!!! file size before implementing test14.php newmail.gif(915) -> file size after implementing test14.php newmail_out.gif(946) It operates correctly in php version 3.0. But, It oprerates incorrectly in php versin 4.0. and, if file type is *.txt, this program is operates correctly I thinks that fread() or fwrite() is problem. please, tell me solution of this problem. I don't know that i don't know. */ <? $filename1 = "newmail.gif"; $filename2 = "newmail_out.gif"; $fd1 = fopen($filename1,"rb"); $fd2 = fopen($filename2,"wb"); $data = fread($fd1, filesize($filename1)); fwrite($fd2, $data); fclose($fd1); fclose($fd2); ?>