View Full Version : imagejpeg no such file or directory

06-20-2010, 01:19 AM
I'm getting this error message using imagejpeg:

imagejpeg() [function.imagejpeg]: Unable to open 'http://myhost.provider.net/mdwpictures/gpfmottenPic12236.jpg' for writing: No such file or directory.

As you can see it cannot store the image into the given directory. I'm trying to store the image created by GD into the given directory. I've used an absolute path as well as a relative path. I know the path is correct, and the direcory I'm trying to write to set to chmod 777.


So what am I doing wrong? Ain't it possible to write the image directly to a given directory with GD?

If not which lines do I need to move a picture from one directory to another?

06-20-2010, 07:21 PM

06-21-2010, 02:49 PM
What about imagecopy() (http://us3.php.net/manual/en/function.imagecopy.php)?