note 102828 deleted from function.copy by danbrown

From: Date: Wed, 09 Mar 2011 14:21:16 +0000
Subject: note 102828 deleted from function.copy by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-177688@lists.php.net to get a copy of this message
Note Submitter: ywarnier at beeznest dot org Reason: bad code ---- 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.

« previous php.notes (#177688) next »