Need help: Copy files in 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
rajsekar2u
Forum Commoner
Posts: 71
Joined: Thu Nov 20, 2008 4:23 am

Need help: Copy files in php

Post by rajsekar2u »

Hi friend

I need help in copy or move files from one folder to another folder....


thanks in advance
User avatar
it2051229
Forum Contributor
Posts: 312
Joined: Tue Dec 25, 2007 8:34 pm

Re: Need help: Copy files in php

Post by it2051229 »

you can do that by getting access inside the directory getting all the contents and one by one copy
it to a new directory.

here's the manual for reading a directory:
http://www.php.net/readdir

here's the manual for copying files
http://www.php.net/copy

if you're expecting a ready made class for that? now's the chance you do it and you might use it on your next projects OR you can visit http://www.phpclasses.org and check if someone has it already. Good day.
Post Reply