Page 1 of 1

Copy FTP-dir with PHP

Posted: Wed Jul 16, 2008 11:00 am
by Cabs
Hi there

I can't figure out how to copy and rename a folder on the ftp-server within the browser..
For instance:

I got myself a directive. On the FTP-server: ftp.myftpserver.dk:
->Folder 1
--> subfolder1
--->file1
--->file2
--> subfolder2
--->file3
--->file4
I would like a phpscript that copies all of this, to a folder, with another name... :S

So i'll get this:
->Folder 1
--> subfolder1
--->file1
--->file2
--> subfolder2
--->file3
--->file4
->Folder 2
--> subfolder1
--->file1
--->file2
--> subfolder2
--->file3
--->file4
Don't know if this makes me a newbie, but how am i supposed to do this? Really don't know...

Any help will be appreciated, greatly!