Hello:
I have a script where I create and image and then I output some text. But the text doesn't seem to appear.
header("Content-type: image/jpg");
$im=imagecreatefromjpeg('cg.jpg');
$textsize='8';
$font='arial.ttf';
$black=imagecolorallocate($im, 0, 0, 0);
imagettftext($im, 8, 0, 100, 73, $black, $font, 'Lighting');
imagejpeg($im);
imagedestroy($im);
class lg {
function verify(){
echo "OK ";
}
}
header('Content-type: text/plain');
$v=new lg;
$v->verify();
If I remove the image I get the output.
But with that there no avail.
I also thought it may be behind it. But I did a for counting from 1 to 500 going down.
Thanks for anyone who helps