note 91173 added to function.copy

From: Date: Thu, 28 May 2009 15:36:16 +0000
Subject: note 91173 added to function.copy
Groups: php.notes 
Request: Send a blank email to php-notes+get-156114@lists.php.net to get a copy of this message
re. nensa at zeec dot biz's stream_copy($src, $dest) below: http://us.php.net/manual/en/function.copy.php#88520 If you're running php programs "in memory" via fork("/usr/bin/php /home/home/public_html/run_in_memory.php" and attempt to use copy() or exec(cp), files usually get cut off before completing. stream_copy($src, $dest) seems to work well in this case. Thanks nensa! ---- Server IP: 208.69.120.35 Probable Submitter: 71.67.111.5 ---- Manual Page -- http://www.php.net/manual/en/function.copy.php Edit -- https://master.php.net/note/edit/91173 Del: integrated -- https://master.php.net/note/delete/91173/integrated Del: useless -- https://master.php.net/note/delete/91173/useless Del: bad code -- https://master.php.net/note/delete/91173/bad+code Del: spam -- https://master.php.net/note/delete/91173/spam Del: non-english -- https://master.php.net/note/delete/91173/non-english Del: in docs -- https://master.php.net/note/delete/91173/in+docs Del: other reasons-- https://master.php.net/note/delete/91173 Reject -- https://master.php.net/note/reject/91173 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#156114) next »