basically... i want to be able to loop through many images made by GD on the fly and inserted in anchor tags
ive tried this:
<?php
//header("Content-type: image/png");
$im = @imagecreate(110, 20)
or die("Cannot Initialize new GD image stream");
$background_color = imagecolorallocate($im, 0, 0, 0);
$text_color = imagecolorallocate($im, 233, 14, 91);
imagestring($im, 1, 5, 5, "A Simple Text String", $text_color);
$img = imagepng($im);
echo "<img src=\"$img.png\" />";
imagedestroy($im);
?>
but all i get is the image code (if u opened it in say notepad) and then a broken image tag
the little things kill me
thanks