Jump to content

image uploads problems - imagejpeg(): Unable to open....


Recommended Posts

Hi guys  :D

 

got a very annoying problem that i have now been trying to fix for days !!  :o  :'(

 

i have a image upload page that ive been assigned to fix, due to it apparently never working. I have a sneaky suspision that the storage directory for the images has not been set the required permissions. The main problem is that the server we are running the site on does not allow us access to the php.ini. :D

 

The error (the one ive been trying to solve for days ) is this..

# Upload to server
	if(imagejpeg($thumb,'/home/httpd/vhosts/clearblueseas.com/httpdocs/clearblueseas_admin/inc/img/temp/'.$_FILES['upload_pic']['name'] ,80)):
return TRUE;
else:
return FALSE;
endif;

Warning: imagejpeg(): Unable to open '/home/httpd/vhosts/clearblueseas.com/httpdocs/clearblueseas_admin/inc/img/temp/dogs.jpg'
for writing in /home/httpd/vhosts/clearblueseas.com/httpdocs/clearblueseas_admin/inc/functions.php on line 46

 

To check weather this directory is writable i used the is_writable() function which always returns false.

 

my question is...

 

1. Can anyone give any advice on this partucilar issue ??  ???

 

2. I have been reading about the ini_ set() and other similar functions that allow changes to be made to the php.ini. Can anyone suggest which setting i need to change ??  ???

 

many thanks

 

Truegilly  :-*

 

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.