// Uploaded Image if (!move_uploaded_file($_FILES['file_image']['tmp_name'],$CONFIG['images_path'].$_FILES['file_image']['name']."")) { $admin->Error("Image was not uploaded do to errors"); } else { $upload_image="Yes"; chmod($CONFIG['images_path'].$_FILES['file_image']['name'],0644); } } else { $error .="Image with that name has already been uploaded<br>"; } } else { $upload_image="No"; } // Now uploading file if they uploaded one if (!move_uploaded_file($_FILES['file_file']['tmp_name'],$CONFIG['files_path'].$_FILES['file_file']['name']."")) { $admin->Error("File Was not uploaded do to errors"); } else { $upload_file="Yes"; chmod($CONFIG['files_path'].$_FILES['file_file']['name'],0644); } } else { $error .="File with that name has already been uploaded<br>"; } } else { $upload_file="No"; } if ($error) { if ($upload_file=="Yes") { } if ($upload_image=="Yes") { } $admin->Error($error);
Błąd w lini zacytowanej 19, nie jest to cały kod bo jest on spory a tutaj treść:
Cytat
Warning: move_uploaded_file() [function.move-uploaded-file]: SAFE MODE Restriction in effect. The script whose uid is 93308 is not allowed to access / owned by uid 0 in /var/www/sites/yoyo.pl/g/-/g-upload/Admin/file.php on line 96
Image was not uploaded do to errors
Image was not uploaded do to errors