Im trying to move a file but am having luck
my code is below. The temp and target paths are valid as they echo
correctly. but I cant get the copy() function to work, or the rename()
function
$target_path = $targetdir . basename($uploa dedfile["name"][$x]);
$temp_path = $tempdir. basename($uploa dedfile["name"][$x]);
echo "Target - ".$target_path. " Temp - ".$temp_path."< br>";
copy($temp_path , $target_path);
has any one experienced this problem?
Ian
my code is below. The temp and target paths are valid as they echo
correctly. but I cant get the copy() function to work, or the rename()
function
$target_path = $targetdir . basename($uploa dedfile["name"][$x]);
$temp_path = $tempdir. basename($uploa dedfile["name"][$x]);
echo "Target - ".$target_path. " Temp - ".$temp_path."< br>";
copy($temp_path , $target_path);
has any one experienced this problem?
Ian
Comment