Page 1 of 1

Type of error?

Posted: Fri Aug 24, 2007 9:00 pm
by 4Boredom
Is this usually a chmod type of error? I just created the images_html folder...

Warning: copy(/home/whosyour/images_html/5_l.jpg): failed to open stream: Permission denied in /home/whosyour/pictures_html/uploadimgs.php on line 49
ERROR: Unable to upload image.ERROR: Unable to upload image.

This is the erroneous line

Code: Select all

$copy = copy($_FILES['imagefile']['tmp_name'], "$idir" . "$filename_l"); // Move Image From Temporary Location To Permanent Location

Posted: Fri Aug 24, 2007 9:32 pm
by s.dot
Yes, $idir doesn't have sufficient permissions to allow the image to be copied there.

Posted: Fri Aug 24, 2007 9:41 pm
by 4Boredom
ok thanks