note 72310 added to function.rename
| From: | jeppe at bundsgaard dot net | Date: | Fri, 12 Jan 2007 21:50:00 +0000 |
| Subject: | note 72310 added to function.rename | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-121583@lists.php.net to get a copy of this message | ||
Until recently you could end the dirname your wanted to rename to with a slash:
rename("mydir/my2nddir/","mydir/my3nddir/")
But now it doesn't work (php warns that it is unable to access mydir/my3nddir/).
So always leave out a final slash in your dirname:
rename("mydir/my2nddir","mydir/my3nddir")
The same goes for mkdir().
----
Server IP: 194.239.128.4
Probable Submitter: 85.218.164.112
----
Manual Page -- http://www.php.net/manual/en/function.rename.php
Edit -- https://master.php.net/note/edit/72310
Del: integrated -- https://master.php.net/note/delete/72310/integrated
Del: useless -- https://master.php.net/note/delete/72310/useless
Del: bad code -- https://master.php.net/note/delete/72310/bad+code
Del: spam -- https://master.php.net/note/delete/72310/spam
Del: non-english -- https://master.php.net/note/delete/72310/non-english
Del: in docs -- https://master.php.net/note/delete/72310/in+docs
Del: other reasons-- https://master.php.net/note/delete/72310
Reject -- https://master.php.net/note/reject/72310
Search -- https://master.php.net/manage/user-notes.php