How can i transfer files between websites with the same host?
<p>I have a server with multiple websites running on a virtual host. </p>

<p>I need to copy files from /vhost/example.com/httpdocs to /vhost/example2.com/httpdocs</p>

<p>I previously used the php exec command and ran the cp -rf script in it. But unfortunately this works only with the folder permission of 777 which is bad.</p>

<p>How can I have a directory transfer done over PHP ?</p>
