Jump to content

Copy All Content of A Directory


funstein

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.