Copy folder

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
S_henry
Forum Contributor
Posts: 148
Joined: Sun Jan 25, 2004 10:25 pm
Location: M'sia

Copy folder

Post by S_henry »

Currently i only can copy file from 1 location to other location. Is it possible to copy folder and its content from 1 location to other location?
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post by Ambush Commander »

You'd have to do something recursively, as PHP doesn't offer a function to do that. Check out the comments section here: http://us2.php.net/manual/en/ref.dir.php for ideas.
Post Reply