Hello, i get this error messages:
Warning: SAFE MODE Restriction in effect. The script whose uid is 1382 is not allowed to access /export/vol1/unix/l/lundberg/public_html/inkfishave/work/photos/1 owned by uid 501 in /export/vol1/unix/l/lundberg/public_html/inkfishave/admin/admin_workshop_ps.php on line 50
Warning: SAFE MODE Restriction in effect. The script whose uid is 1382 is not allowed to access /export/vol1/unix/l/lundberg/public_html/inkfishave/work/photos/1 owned by uid 501 in /export/vol1/unix/l/lundberg/public_html/inkfishave/admin/admin_workshop_ps.php on line 51
And the code that makes the errormessages apear:
$temp_dir = "../work/photos/". $gallery_id;
if (!file_exists($temp_dir)) {
mkdir($temp_dir, 0777);
}
copy($file_picture, $temp_dir ."/". $file_picture_name);
copy($file_thumb, $temp_dir ."/". $file_thumb_name);
$gallery_id is a integer for example: 2
I've changed the chmod to 777 on the directorys: work and photos.
This code worked on my computer (local) so I don't think it's the code that is wrong, or is it?
Thanks!