I am doing a image upload system.
It creates a folder and upload the image to the folder everytime when it runs
but everytime when the script creates the folder and upload, i got the error message : Warning: SAFE MODE Restriction in effect. The script whose uid is 10027 is not allowed to access /usr/local/psa/home/vhosts/7-cm.com/httpdocs/project/album/img/temp/123 owned by uid 10047 in /usr/local/psa/home/vhosts/7-cm.com/httpdocs/project/album/up2.php on line 23
how can i slove this problem?
thanks
script :
http://www.7-cm.com/project/album/up.php
http://www.7-cm.com/project/album/up2.php
$uploaddir = '/usr/local/psa/home/vhosts/7-cm.com/httpdocs/project/album/img/temp/123';
print "<pre>";
print $str;
$file = '/usr/local/psa/home/vhosts/7-cm.com/httpdocs/project/album/img/temp/123';
mkdir($file,0755);
chmod ($file,0777);
//umask(0);
print "<pre>";
for ($i=0;$i<=4;$i++){
print $girl_path.'/'.$i.'<br>';
if (move_uploaded_file($FILES['userfile']['tmp_name'][$i],$uploaddir.'/'.$i.'.jpg')){
print $FILES['photo']['tmp_name'][$i].'<br>';
print "file $i successfully uploaded<br>";
} else {
//print_r($_FILES);
print "file $i cannot upload<br>";
}
}