note 16445 added to function.rename
| From: | php at angelfall dot net | Date: | Wed, 31 Oct 2001 00:43:07 +0000 |
| Subject: | note 16445 added to function.rename | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-19624@lists.php.net to get a copy of this message | ||
Overwriting is the correct and expected behavior in *nix. From "man rename":
Rename() causes the link named from to be renamed as to. If to exists,it is first removed.
Both from and to must be of the same type (that is, both directories or both non-directories), d
must reside on the same file system.
--Liam
--
http://www.php.net/manual/en/function.rename.php
http://master.php.net/manage/user-notes.php?action=edit+16445
http://master.php.net/manage/user-notes.php?action=delete+16445
http://master.php.net/manage/user-notes.php?action=reject+16445