Problem ive come accross is that I cant output created images direct to the browser at the same time as text, it just results in a pile of garbage.
So i resort to saving the image in a precreated file, with chmod set to 777.
thing is imagejpeg is now throwing errors :/
Code: Select all
<?php
$out = fopen('test.jpg', 'wb');
Imagejpeg($im,$out,50); //line 95
fclose($out);
ImageDestroy($im);
?>Warning: imagejpeg(): Unable to open 'Resource id #3' for writing in gdtests.php on line 95
the first problem (not being able to output text with an image) is np because the end code will be wanting to save the image for later use anyway. Any ideas whats causing this error and how to solve it?
Thanks