Copy FTP-dir with PHP

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Cabs
Forum Newbie
Posts: 1
Joined: Wed Jul 16, 2008 10:49 am

Copy FTP-dir with PHP

Post 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!
Post Reply