Home > Archive > PHP Programming > May 2004 > Copy files and folders from one directory into another
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Copy files and folders from one directory into another
|
|
|
| I have files in myurl.com/myfolder
and I would like to copy all of them into
myurl.com/newfolder
I'd like to copy all of the subdirectories and files that are in
/myfolder
and I would like to be able to use a form of some sort to name the
file I want to copy, and create the folder I'd like to copy it to,
such as newfolder.
How can I use a form to create a new folder on the server?
How can I use a form to name the old folder I want to copy everything
from, then create the name of the new folder I want to copy everything
into, and then copy?
If anyone can help, I'd be VERY appricative.
Thank you.
| |
| Tim Van Wassenhove 2004-05-21, 7:30 pm |
| In article <7383558c.0405211340.231be283@posting.google.com>, Frank wrote:
> I have files in myurl.com/myfolder
>
> and I would like to copy all of them into
>
> myurl.com/newfolder
Now, why don't you just rename myfolder to newfolder?
in php something like system('mv myfolder newfolder');
and probably there are some native php functions too...
--
Tim Van Wassenhove <http://home.mysth.be/~timvw/contact.php>
|
|
|
|
|