Jump to content

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


truegilly

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  :-*

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.