Posted by Rik on 07/31/06 14:03
bizt wrote:
>> ImageJPEG($thumb, $new_name);
>
> How does this work? Will this create the new thumbnail even if the
> file doesnt already exist? Its just Im getting the following error:
>
> Warning: imagejpeg(): Unable to open 'thumbs/image12.jpg' for writing
> in /home/martyn69/public_html/photos/photos/thumb.php on line 55
>
> Note: I have changed the $new_name to tie up with my 'id' field of the
> table that the image filenames are stored.
>
Mkae sure the directory is writable for the script. CHMOD 0777
Grtz,
--
Rik Wasmus
[Back to original message]
|