copy some folders and files inside for others place

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
srdva59
Forum Commoner
Posts: 77
Joined: Sun Feb 15, 2009 10:58 am

copy some folders and files inside for others place

Post 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 :)
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Re: copy some folders and files inside for others place

Post by Benjamin »

Code: Select all

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