note 113649 added to function.rename

From: Date: Sun, 10 Nov 2013 06:20:30 +0000
Subject: note 113649 added to function.rename
Groups: php.notes 
Request: Send a blank email to php-notes+get-197484@lists.php.net to get a copy of this message
Interesting to note that if you are trying to rename a file within a folder adding a slash in front of the folder (even if the folder is in the root of your server) will not work. in other words, if you have the folder "tmp" in your server's root: <?php rename("/tmp/tmp_file.txt", "/tmp/my_file.txt"); // will not work rename("tmp/tmp_file.txt", "tmp/my_file.txt"); // WILL work! ?> ---- Server IP: 192.41.45.150 Probable Submitter: 66.65.113.94 ---- Manual Page -- http://php.net/manual/en/function.rename.php Edit -- https://master.php.net/note/edit/113649 Del: integrated -- https://master.php.net/note/delete/113649/integrated Del: useless -- https://master.php.net/note/delete/113649/useless Del: bad code -- https://master.php.net/note/delete/113649/bad+code Del: spam -- https://master.php.net/note/delete/113649/spam Del: non-english -- https://master.php.net/note/delete/113649/non-english Del: in docs -- https://master.php.net/note/delete/113649/in+docs Del: other reasons-- https://master.php.net/note/delete/113649 Reject -- https://master.php.net/note/reject/113649 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#197484) next »