note 116110 added to function.rename
| From: | manikarunachalam at gmail dot com | Date: | Tue, 11 Nov 2014 07:23:02 +0000 |
| Subject: | note 116110 added to function.rename | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-200868@lists.php.net to get a copy of this message | ||
I have 2 image files file1.jpg,file2.jpg in a folder "test.I need to delete file1.jpg and
rename the file2.jpg to file1.jpg.
unlink(file1.jpg);
rename(file2.jpg,file.jpg);
but this code recover the deleted file1.jpg..
----
Server IP: 72.52.91.14
Probable Submitter: 122.174.42.198
----
Manual Page -- http://php.net/manual/en/function.rename.php
Edit -- https://master.php.net/note/edit/116110
Del: integrated -- https://master.php.net/note/delete/116110/integrated
Del: useless -- https://master.php.net/note/delete/116110/useless
Del: bad code -- https://master.php.net/note/delete/116110/bad+code
Del: spam -- https://master.php.net/note/delete/116110/spam
Del: non-english -- https://master.php.net/note/delete/116110/non-english
Del: in docs -- https://master.php.net/note/delete/116110/in+docs
Del: other reasons-- https://master.php.net/note/delete/116110
Reject -- https://master.php.net/note/reject/116110
Search -- https://master.php.net/manage/user-notes.php