Stupid Question #437 (copy, rename folder and contents)

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
glennn.php
Forum Commoner
Posts: 41
Joined: Sat Jul 08, 2006 12:26 pm

Stupid Question #437 (copy, rename folder and contents)

Post by glennn.php »

ok - is there a function/means that would copy a folder and its files and rename the folder ($userid)?

thanks for your help,
g
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

a combination of glob(), copy(), and rename(), and perhaps chmod() should do the trick
Post Reply