matrixx
Verified User
Hi I get the following error when running a script that renames a file that has been uploaded. I've checked permissions on the folders and files etc and all are ok, I'm wondering if it is the permission level allocated to Apache?
Heres the code:
Heres the error:
Warning: rename(/home/mikeohara/domains/carrotcottage.com/public_html/mfiles/NewStories(HighwayBlues).wma,/home/mikeohara/domains/carrotcottage.com/public_html/mfiles/CC008895BE/M8FEF03EE.wma): Permission denied in /home/mikeohara/domains/carrotcottage.com/public_html/login/project.php on line 70
Has anyone come across this / offer any suggestions?
Cheers,
Rob
Heres the code:
PHP:
$old_file = "/home/mikeohara/domains/carrotcottage.com/public_html/mfiles/".$f_new;
$new_file = "/home/mikeohara/domains/carrotcottage.com/public_html/mfiles/".$id."/".$fname;
if (file_exists($old_file)){
rename ($old_file,$new_file);
}
Heres the error:
Warning: rename(/home/mikeohara/domains/carrotcottage.com/public_html/mfiles/NewStories(HighwayBlues).wma,/home/mikeohara/domains/carrotcottage.com/public_html/mfiles/CC008895BE/M8FEF03EE.wma): Permission denied in /home/mikeohara/domains/carrotcottage.com/public_html/login/project.php on line 70
Has anyone come across this / offer any suggestions?
Cheers,
Rob
Last edited: