Well here's the problem...
I'm creating dir on the fly and then copying file from a temp dir to the newly create dir.
all is well except I lose ownership after examning my option I found the chown() which changes ownership of the files and/or dir.
problem is the sever is a rented isp and for using the chown function you must be the superuser
is there another way to copy files without losing ownership using PHP3?
// Step 5 Create Dir
if (mkdir("bpofiles/$username", 0777));
// Step 6 Copy files
$source "$host/index.php3";
$dest = "$host/$co_name/index.php3";
if ( copy($source, $dest) ) {
echo "<BR>Successfully copied.";
} else {
echo "Unsuccessfully copied.";
}
If there is a better way please let me know
TIA
Richie TM