[thelist] Image in PHP

HP Thniah heanpeng at gmail.com
Thu Apr 16 07:01:33 CDT 2009


I developed a PHP script to output the results of a survey in the form of a
GIF image.

The issue is that I would like to include titles and links on the page but
they dont work. Please advise.

The script below produces the GIF image but ignores the echo bit. Any titles
I add (by using the echo function also doesn't work).

<?php
Header("Content-Type: image/gif");
....
$im = ImageCreate($xDim, $yDim);
$backg = ImageColorAllocate($im, 255,255,200);
$blue = ImageColorAllocate($im, 0, 0, 255);
$nY = 0;
...
ImagePNG($im);
mysql_close($con);
echo "<br>Back To [<a href=\"test.html\">Main</a>]<br>";
?>



More information about the thelist mailing list