PHP rCopy Set File chMod?
<p>I am using the following code to copy a folder and it's contents from location A to B.</p>

<p>It's works file but I have a problem with the file ownerships...it's setting the copy to Nobody</p>

<p>I've tried activating suPHP but my website broke so can't do that one.</p>

<p>Are there any work arounds?</p>

<p>Here is the code I'm using:</p>

<pre><code>rcopy("$source_folder", "$target_folder");
chmod($target_folder, 0755);
chmod($target_folder.'/images', 0777);
}
</code></pre>
