moving uploaded files
| From: | Jon Mormino | Date: | Thu, 13 Sep 2001 20:07:14 +0000 |
| Subject: | moving uploaded files | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-12424@lists.php.net to get a copy of this message | ||
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