funstein Posted June 30, 2010 Share Posted June 30, 2010 Hi everyone, I am trying to write a php code that creates a directory, and then copies the regular files into that directory. If it were linux terminal, I could use mkdir /www/network/Database/$platform/$fv cp /www/network/other/*.* /www/network/Database/$platform/$fv But in PHP, the * makes the whole line comment out. So how can I copy all the content of the dir called other, to the previously created directory? Thanks a lot. Funstein Link to comment https://forums.phpfreaks.com/topic/206281-copy-all-content-of-a-directory/ Share on other sites More sharing options...
trq Posted June 30, 2010 Share Posted June 30, 2010 <?php `cp /www/network/other/*.* /www/network/Database/$platform/$fv` ?> Link to comment https://forums.phpfreaks.com/topic/206281-copy-all-content-of-a-directory/#findComment-1079150 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.