note 46761 added to function.fread

From: Date: Fri, 22 Oct 2004 11:52:07 +0000
Subject: note 46761 added to function.fread
Groups: php.notes 
Request: Send a blank email to php-notes+get-78939@lists.php.net to get a copy of this message
I spent whole day trying to copy JPG file from remote server. Don't forget, that if you want to copy binary file, you must open source file with fopen("http://10.1.1.4/filename.jpg", "rb"); (be sure you add "b" mode) and be sure to open destination file with fopen("filename_dest.jpg","w+b") (be sure you add "b" mode). I hope it will help someone... anyway, don't be angry on me... I'm newbie:) ---- Manual Page -- http://www.php.net/manual/en/function.fread.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+46761 Delete -- http://master.php.net/manage/user-notes.php?action=delete+46761&report=yes Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+46761&report=yes&reason=bad+code Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+46761&report=yes&reason=spam Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+46761&report=yes&reason=useless+example Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+46761&report=yes&reason=contains+commercial+links Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+46761&report=yes&reason=useless+note Reject -- http://master.php.net/manage/user-notes.php?action=reject+46761&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#78939) next »