zampu Posted September 14, 2007 Share Posted September 14, 2007 I think i can use copy() to do this, but i just dk how :S. i can only get it to copy files. I need a script that can copy a folder, and all the files in that folder, and "paste" it in a new directory. Thanks for the help! Link to comment https://forums.phpfreaks.com/topic/69405-copying-a-directory/ Share on other sites More sharing options...
BlueSkyIS Posted September 14, 2007 Share Posted September 14, 2007 first get the name of the directory, then mkdir() to make the directory elsewhere, then use copy() for each of the files into the new directory. Link to comment https://forums.phpfreaks.com/topic/69405-copying-a-directory/#findComment-348707 Share on other sites More sharing options...
zampu Posted September 14, 2007 Author Share Posted September 14, 2007 the hard way xD, ok ty Link to comment https://forums.phpfreaks.com/topic/69405-copying-a-directory/#findComment-348711 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.