Re: Rename
| From: | Nathan Nobbe | Date: | Thu, 24 Jan 2008 21:46:08 +0000 |
| Subject: | Re: Rename | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-268044@lists.php.net to get a copy of this message | ||
On Jan 24, 2008 4:42 PM, Bastien Koert <bastien_k@hotmail.com> wrote:
> http://ca3.php.net/manual/en/function.copy.php
>
> make the manual your friend
rename() is much more efficient; since the original files will
have to be deleted as well, with a copy approach.
and i suspect rename() atomic as well.
-nathan