Re: moving uploaded files
| From: | Sean Swehla | Date: | Thu, 13 Sep 2001 20:18:15 +0000 |
| Subject: | Re: moving uploaded files | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-12428@lists.php.net to get a copy of this message | ||
How about:
copy("path1","path2");
unlink("path1");
On Thu, 13 Sep 2001 16:07:14 -0400
"Jon Mormino" <morminoj@sidwell.edu> wrote:
> Does anyone have a solution for the following problem.
>
> I use dbwired.com for hosting (great service). They do not, however,
> for obviously reasons allow the system() command from a php script.
>
> So, when I switched to this server I had to switch from a system("mv
> file1 file2"); command to a move_uploaded_file("path1","path2");
> command
> which is fine...for uploading. But, once a file is uploaded I can't
> figure out a way to move or delete it as it is no longer considered an
> "uploaded file" and hence move_uploaded_file() fails. Does anyone know
> a way around this?
>
> Thanks.
>
> -Jon Mormino
>
-=-=-
Sean Swehla, MCP
Network Architect
VPN Solutions, LLC