actually i took care of that... now im having trouble including the file...
image.php
<?php
header ("Content-type: image/png");
$im = imagecreate (135, 22);
#$back_color = ImageColorAllocate ($im, 88,162,129);
$back_color = ImageColorAllocate ($im, 0,0,0);
#$back_text_color = ImageColorAllocate ($im, 62,136,101);
$back_text_color = ImageColorAllocate ($im, 140,0,0);
$fore_text_color = ImageColorAllocate ($im, 255,0,0);
ImageTTFText ($im, 20, 0, 0, 20, $back_text_color, "ds-digi.ttf", "8");
ImageTTFText ($im, 20, 0, 0, 20, $fore_text_color, "ds-digi.ttf", "2");
ImageTTFText ($im, 20, 0, 15, 20, $back_text_color, "ds-digi.ttf", "8");
ImageTTFText ($im, 20, 0, 14, 20, $fore_text_color, "ds-digi.ttf", "3");
ImageTTFText ($im, 20, 0, 30, 20, $back_text_color, "ds-digi.ttf", "8");
ImageTTFText ($im, 20, 0, 30, 20, $fore_text_color, "ds-digi.ttf", "4");
ImageTTFText ($im, 20, 0, 45, 20, $back_text_color, "ds-digi.ttf", "8");
ImageTTFText ($im, 20, 0, 45, 20, $fore_text_color, "ds-digi.ttf", "5");
ImageTTFText ($im, 20, 0, 60, 20, $back_text_color, "ds-digi.ttf", "8");
ImageTTFText ($im, 20, 0, 60, 20, $fore_text_color, "ds-digi.ttf", "6");
ImageTTFText ($im, 20, 0, 75, 20, $back_text_color, "ds-digi.ttf", "8");
ImageTTFText ($im, 20, 0, 74, 20, $fore_text_color, "ds-digi.ttf", "7");
ImageTTFText ($im, 20, 0, 90, 20, $back_text_color, "ds-digi.ttf", "8");
ImageTTFText ($im, 20, 0, 90, 20, $fore_text_color, "ds-digi.ttf", "8");
ImageTTFText ($im, 20, 0, 105, 20, $back_text_color, "ds-digi.ttf", "8");
ImageTTFText ($im, 20, 0, 105, 20, $fore_text_color, "ds-digi.ttf", "9");
ImageTTFText ($im, 20, 0, 120, 20, $back_text_color, "ds-digi.ttf", "8");
ImageTTFText ($im, 20, 0, 126, 20, $fore_text_color, "ds-digi.ttf", "1");
ImagePNG($im);
imagedestroy($im);
?>
index.php
<html>
<head>
<style type="text/css">
body {
margin: 0; padding: 0;
background: rgb(0,0,0);
}
</style>
</head>
<body>
<?php include("image.php"); ?>
</body>
</html>
output:
cannot be displayed b/c it contains errors