note 102828 added to function.copy

From: Date: Wed, 09 Mar 2011 02:46:30 +0000
Subject: note 102828 added to function.copy
Groups: php.notes 
Request: Send a blank email to php-notes+get-177676@lists.php.net to get a copy of this message
On a Linux-based system, when copying a lot of files from and to a NFS shared partition, it's a good idea to replace a simple call like copy($orig, $dest); by exec($orig, $dest); In my case, I had an improvement in speed of more than 10 times. Seems like something might be a bit wrong with the copy() implementation in certain circumstances. PS: make sure you filter your parameters with escapeshellcmd() first, to avoid tricky injections. ---- Server IP: 69.147.83.197 Probable Submitter: 190.187.21.53 ---- Manual Page -- http://www.php.net/manual/en/function.copy.php Edit -- https://master.php.net/note/edit/102828 Del: integrated -- https://master.php.net/note/delete/102828/integrated Del: useless -- https://master.php.net/note/delete/102828/useless Del: bad code -- https://master.php.net/note/delete/102828/bad+code Del: spam -- https://master.php.net/note/delete/102828/spam Del: non-english -- https://master.php.net/note/delete/102828/non-english Del: in docs -- https://master.php.net/note/delete/102828/in+docs Del: other reasons-- https://master.php.net/note/delete/102828 Reject -- https://master.php.net/note/reject/102828 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#177676) next »