Type of error?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
4Boredom
Forum Contributor
Posts: 176
Joined: Tue Nov 08, 2005 4:29 pm

Type of error?

Post 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
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post by s.dot »

Yes, $idir doesn't have sufficient permissions to allow the image to be copied there.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
4Boredom
Forum Contributor
Posts: 176
Joined: Tue Nov 08, 2005 4:29 pm

Post by 4Boredom »

ok thanks
Post Reply