Page 1 of 1

Need help: Copy files in php

Posted: Tue Jan 06, 2009 5:11 am
by rajsekar2u
Hi friend

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


thanks in advance

Re: Need help: Copy files in php

Posted: Tue Jan 06, 2009 6:22 am
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.