rename an uploaded file.
| From: | Bosky, Dave | Date: | Tue, 09 Aug 2005 13:08:22 +0000 |
| Subject: | rename an uploaded file. | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-220285@lists.php.net to get a copy of this message | ||
I seem to be having some trouble renaming a file after uploading it.
It always returns a warning message indicating I have an invalid
attribute in my rename statement.
Thanks,
Dave
-------------------
Example:
$old = 'C:\\homedirectory\uploadedfiles\\newfile.gif';
$new = 'C:\\homedirectory\\uploadedfiles\\2005-08-05-09:00:00.gif';
move_uploaded_file(temp fileuploaded, $old);
rename($old,$new);
HTC Disclaimer: The information contained in this message may be privileged and confidential and
protected from disclosure. If the reader of this message is not the intended recipient, or an
employee or agent responsible for delivering this message to the intended recipient, you are hereby
notified that any dissemination, distribution or copying of this communication is strictly
prohibited. If you have received this communication in error, please notify us immediately by
replying to the message and deleting it from your computer. Thank you.