Hi Tom
thanks for the reply. Looks good. Checked out the docs and comments at http://www.php.net
however, some gaps in my knowledge ... have tried variations of this...
function distrib2($origName)
{
$systemStr = "cp -r \"/www/htdocs/v2/uploads/$origName\" \"/www/htdocs/v2/testme/$origName\" ";
$output = "[$systemStr] " . system( $systemStr, $stuff);
$output .= "[$stuff]";
return $output;
}//distrib2
And always get a return code of 127 - even for small files.
-- have used getcwd() to ensure that the path is right, it's wrong in the example above, have since sorted out. --
I have my chmod set to 777 so it's not a security problem.
My test page is password protected but if necessary I'll get another version going and invite comment.
Any ideas?