By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,751 Members | 1,158 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,751 IT Pros & Developers. It's quick & easy.

copy one folder into another folder

P: 118

i want to copy the contents of one folder into another folder.For that i create the one new folder . I copied the files of already existing folder into new folder.For that i write a code as


But in that new folder 'filescreate' created. and files in the admin folder are not copied.plz tell that what's the problem in my code.
Aug 13 '08 #1
Share this Question
Share on Google+
2 Replies

P: 114
copy() only works on single files.
Aug 13 '08 #2

Expert 5K+
P: 5,821
Heya, Swethak.

Do you need to copy the folder, or can you simply move it? PHP's rename() function works on directories (
Aug 14 '08 #3

Post your reply

Sign in to post your reply or Sign up for a free account.