note 111566 deleted from function.rename by cmb
| From: | cmb@php.net | Date: | Sun, 22 Dec 2019 09:13:02 +0000 |
| Subject: | note 111566 deleted from function.rename by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-213603@lists.php.net to get a copy of this message | ||
Note Submitter: Anonymous
----
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.