Error in uploading image..shwoing Permission denied

Hi Forum,

I am trying to upload image using php script…but @ run time it flagging up with a error saying:

Warning: imagejpeg() [function.imagejpeg]: Unable to open ‘/home/megh1398/public_html/images/category/40b952825106136e0d3017fffde8b705.jpg’ for writing: Permission denied in /home/megh1398/public_html/admin/library/functions.php on line 272

Please let me know why its happening…I am using Apache server…

Any help would be appreciated.


List what that line of code is. But I’m betting that the folder you are trying to save the image to simply doesnt have the right permissions set. Is this server on your local network or do you have to FTP in?


I agree with KW on this as your server has reported a permission problem. Your images needs to have a chmod 777 applied to it.



Thanks…its working fine…