Hi,
I am new to eukhost and have been setting up a CMS for the backend of my company’s
website hosting and have written a very simple uploading script in php. So I was wondering if anyone can help me find out why I am getting these errors when it runs as it should work as it has run on my test server.
ERROR on site
Warning: move_uploaded_file(../Body/Staff/pauls.jpg) [function.move-uploaded-file]: failed to open stream: Permission denied in /home/profound/public_html/Userarea/user.php on line 1341
Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpFkU0Dd' to '../Body/Staff/pauls.jpg' in /home/profound/public_html/Userarea/user.php on line 1341
SCRIPT used
(staffimage : is the path passed to the script from the form)
$target_path = $target_path . basename( $_FILES['staffimage']['name']);
move_uploaded_file($_FILES['staffimage']['tmp_name'], $target_path);
$staffimageloc = $_FILES['staffimage']['name'];
Thanks for any help you can give
Kind Regards,
Ryan