Page 1 of 1

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

Posted: Thu Nov 16, 2006 9:54 pm
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

Posted: Thu Nov 16, 2006 9:55 pm
by John Cartwright
a combination of glob(), copy(), and rename(), and perhaps chmod() should do the trick