I'm having a problem with my file upload script:
Warning: move_uploaded_file(): SAFE MODE Restriction in effect. The script whose uid is 2975 is not allowed to access /home/www/web12/html/files/Bilder/fdsa owned by uid 30 in /home/www/web12/html/admin/include/files/upload.inc.php on line 9
The cruitial part in the Document that's producing the error:
$uploadDir = '../files/' . $_POST['system_mainfolder_root'] . '/' . $_POST['system_folder_root'] . '/';
$uploadFile = $uploadDir . $_FILES['userfile']['name'];
echo $uploadFile . "<br>";
echo $_FILES['userfile']['name'] . "<br>";;
if (move_uploaded_file($_FILES['userfile']['tmp_name'], $uploadFile))
{
echo "file upload erfolgreich";
exit;
}
Since this file is hosted at a professional supplier, I am not able to change the php-configuration. Is there a different way to get the file uploaded anyways or am I just to stupid to write a errorless script?
I'm sorry, if there is another thread that covers this problem. I have not been able to find a suiting solution. I also have been researching the Internet for a hint.
Thanks a lot for your help!