Re: imagejpeg

From: Date: Tue, 11 Nov 2003 17:11:13 +0000
Subject: Re: imagejpeg
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-169188@lists.php.net to get a copy of this message
Egil Berntsen wrote:
My site need to create some images on-the-fly(with user data) for every user but I have some problem with the creating of the jpeg-image. I put these images in my MySQL database for later use. This have to do somthing with write protection because this is not a problem when I'm working on localhost. The problem comes on .com. And get this: Warning: imagejpeg(): Unable to open 'filename.jpg' for writing in ...
Web server needs write permission to the directory where you want to create the image. You should make a temp directory and not write to the one where your scripts are located.

« previous php.general (#169188) next »