note 111566 added to function.rename

From: Date: Mon, 04 Mar 2013 22:55:41 +0000
Subject: note 111566 added to function.rename
Groups: php.notes 
Request: Send a blank email to php-notes+get-193896@lists.php.net to get a copy of this message
I could not get this to work at first, then saw that I was using a site url constant ahead of my target folder/filename. After re-reading the example I changed my constant to a filesystem type, like <?php rename( old_filename.ext, $_SERVER['DOCUMENT_ROOT']"/target/folder/my_new_filename.ext"); ?> and it worked like a charm. ---- Server IP: 69.147.83.199 Probable Submitter: 67.170.86.94 ---- Manual Page -- http://php.net/manual/en/function.rename.php Edit -- https://master.php.net/note/edit/111566 Del: integrated -- https://master.php.net/note/delete/111566/integrated Del: useless -- https://master.php.net/note/delete/111566/useless Del: bad code -- https://master.php.net/note/delete/111566/bad+code Del: spam -- https://master.php.net/note/delete/111566/spam Del: non-english -- https://master.php.net/note/delete/111566/non-english Del: in docs -- https://master.php.net/note/delete/111566/in+docs Del: other reasons-- https://master.php.net/note/delete/111566 Reject -- https://master.php.net/note/reject/111566 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#193896) next »