tibberous Posted December 23, 2010 Share Posted December 23, 2010 I want to copy everything in templates/blue to the folder code/ However: shell_exec("cp -r 'templates/blue' 'code'"); Creates a folder called blue inside code. I tried cp -r 'templates/blue/*' 'code', but that didn't do anything. Any ideas? Link to comment https://forums.phpfreaks.com/topic/222469-copying-the-files-inside-a-folder-without-copying-the-folder/ Share on other sites More sharing options...
johnny86 Posted December 23, 2010 Share Posted December 23, 2010 Try: shell_exec("cp templates/blue/*.* /code"); Link to comment https://forums.phpfreaks.com/topic/222469-copying-the-files-inside-a-folder-without-copying-the-folder/#findComment-1150646 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.