Page 1 of 1

copy some folders and files inside for others place

Posted: Sun May 16, 2010 7:32 pm
by srdva59
hi,
i have a server that have a master account for example:
www.silva.com
that have some files that was updated diary.
and i have others sub domains like
www.silva.com/tst and www.silva.com/klklk
what i need to do is a script for copy the folder that i say but with all sub folders
inside of that folder.
any one know a script that does that?
thanks a lot for your help :)

Re: copy some folders and files inside for others place

Posted: Wed May 19, 2010 5:24 am
by Benjamin

Code: Select all

exec('bin/cp -r /foo/* /bar/');