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 Quote 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` ?> Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.