Re: Renaming an uploaded file
| From: | Jason Wong | Date: | Mon, 24 Feb 2003 09:20:38 +0000 |
| Subject: | Re: Renaming an uploaded file | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-136863@lists.php.net to get a copy of this message | ||
On Monday 24 February 2003 16:39, Steve Jackson wrote:
> 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.
How are you processing the uploaded file? Usually (as per example in manual),
you would use the move_uploaded_file() command. That allows you to specify a
destination filename.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
Sex is like air. It's only a big deal if you can't get any.
*/