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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to