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! Quote 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. Quote 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 Quote Link to comment https://forums.phpfreaks.com/topic/69405-copying-a-directory/#findComment-348711 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.