imagejpeg

From: Date: Tue, 11 Nov 2003 16:34:40 +0000
Subject: imagejpeg
Groups: php.general 
Request: Send a blank email to php-general+get-169187@lists.php.net to get a copy of this message
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. I'm trying this: $image = imagecreate(100,100); {some drawing} $fname="filename.jpg"; ImageJPEG($image, $fname); {database} ImageDestroy($image); unlink($filename); And get this: Warning: imagejpeg(): Unable to open 'filename.jpg' for writing in ... egil

« previous php.general (#169187) next »