Renaming an uploaded file
| From: | Steve Jackson | Date: | Mon, 24 Feb 2003 08:39:21 +0000 |
| Subject: | Renaming an uploaded file | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-136856@lists.php.net to get a copy of this message | ||
Hi all,
I am in the process of building a CMS and need to know how to rename an
uploaded template.
I can upload the page fine (ie. Template.php) but then I want to be able
to save the file as a user specified name after the upload is done.
Either that or copy the template from the server and save it as
something else. The reason is that I want all the php files to be
physical URLs rather than be a page with an ID assigned so that tracking
where users have been is easier. Currently we use webalizer to track
pages and ?ID=whatever is dropped from the URL string for entry and exit
pages.
Any suggestions?
Kind regards,
Steve Jackson
Web Developer
Viola Systems Ltd.
http://www.violasystems.com
stephen.jackson@violasystems.com
Mobile +358 50 343 5159