Hello, i'm using image create and it works on my server, but when i try to put text and php code before it, it doesn't work.
It only works if that's all thats coded is the imagecreate code.
Can someone help me.
The code below would work
<?
header ("Content-type: image/png");
$im = @ImageCreate (50, 100)
or die ("Cannot Initialize new GD image stream");
$background_color = ImageColorAllocate ($im, 255, 255, 255);
$text_color = ImageColorAllocate ($im, 233, 14, 91);
ImageString ($im, 1, 5, 5, "display text", $text_color);
ImagePng ($im);
ImageDestroy ($im);
?>
but this just shows a bunch of lksjd0208208asd80ads
<head>
<title>hi</title>
</head>
<body>
here is some text...
<?
header ("Content-type: image/png");
$im = @ImageCreate (50, 100)
or die ("Cannot Initialize new GD image stream");
$background_color = ImageColorAllocate ($im, 255, 255, 255);
$text_color = ImageColorAllocate ($im, 233, 14, 91);
ImageString ($im, 1, 5, 5, "display text", $text_color);
ImagePng ($im);
ImageDestroy ($im);
?>
I even tried to comment out the header code
Thanks for your help,
Mark