Not allowed to access???
Posted: Sun May 04, 2003 11:33 pm
What is with this, the damn thing won't work. Just UPLOAD @#$!
Warning: SAFE MODE Restriction in effect. The script whose uid is 549 is not allowed to access /var/www/html/images owned by uid 0 in /home/virtual/site47/fst/var/www/html/modify/imageuploader.php on line 23
upload failed!
Do I need to connect (user, password) to the site, if so how??????
Warning: SAFE MODE Restriction in effect. The script whose uid is 549 is not allowed to access /var/www/html/images owned by uid 0 in /home/virtual/site47/fst/var/www/html/modify/imageuploader.php on line 23
upload failed!
Code: Select all
<?
$path = "../images/used/";
$max_size = 200000;
if (!isset($_FILES['file'])) {
exit;
}
if (is_uploaded_file ($_FILES['file']['tmp_name'])) {
if ($_FILES['file']['size']>$max_size) {
echo "The file is too big<br>\n";
exit;
}
if (($_FILES['file']['type']== "image/gif") || ($_FILES['file']['type']== "image/pjpeg") || ($_FILES['file']['type']== "image/jpeg")) {
if (file_exists($path.$_FILES['file']['name'])) {
echo "The file already exists";
exit;
}
$res = copy($_FILES['file']['tmp_name'], $path.$_FILES['file']['name']);
if (!$res) {
echo "upload failed!";
exit;
} else {
echo "upload sucessful";
}
} else {
echo "Wrong file type";
exit;
}
}
?>