Hello,
Im trying to do this:
$temp_dir = "../work/photos/". $gallery_id;
mkdir($temp_dir, 0777);
copy($file_picture, "../work/photos/". $gallery_id ."/". $file_picture_name);
copy($file_thumb, "../work/photos/". $gallery_id ."/". $file_thumb_name);
$gallery_id is a number, for example 2.
When i try it then NO directory is created and the pictures are uploaded to: ../work/photos/thepicture.jpg
instead of being uploaded as i want, to: ../work/photos/2/picture.jpg
How can i fix it?