note 13705 added to function.rename.php
| From: | php-general at lists dot php dot net | Date: | Fri, 29 Jun 2001 15:09:57 +0000 |
| Subject: | note 13705 added to function.rename.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-14744@lists.php.net to get a copy of this message | ||
I don't think it is a bug that rename() overwrites existing destination file, because sometimes
that is just what we want to do. Maybe in the future version it would be better to add a parameter
to rename() that indicates whether we want to overwrite or not. PHP don't have function to move
file, but of course that can be done with copy() and delete().
http://www.php.net/manual/en/function.rename.php