Re: Moving Files/ Temporary Names
| From: | Brad Pauly | Date: | Mon, 14 Jul 2003 20:13:17 +0000 |
| Subject: | Re: Moving Files/ Temporary Names | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-155165@lists.php.net to get a copy of this message | ||
caspar kennerdale wrote:
- I'm a little confused. The files are already in there real location. It is just that someone may want to change that location at a later date. e.g. they upload an image to a folder and two months later decide it is better placed in a different folder. Or am I missing something really obvious. The other solution I can see is to copy the file to the new location and delete the originalCheck out rename(). That might be what you want. http://us3.php.net/rename Also, if you are on *nix (I don't remember if there is an equivalent in MS windows), you could use the mv command via the exec function. - Brad