note 91173 deleted from function.copy by danbrown
| From: | danbrown@php.net | Date: | Thu, 28 May 2009 15:37:06 +0000 |
| Subject: | note 91173 deleted from function.copy by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-156115@lists.php.net to get a copy of this message | ||
Note Submitter: Vanarie
----
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!