Dynamic image problem.
It's probably something trivial that I overlooked, but I can't get the text to appear on my image.
<?php
$fontfile = realpath('Helve.ttf');
$TextString = "(60%)";
$image = imagecreate ( 300, 300);
$rec1 = imagecolorallocate($image, 255, 255, 255);
$rec2 = imagecolorallocate($image, 0, 0, 0);
$rec3 = imagecolorallocate($image, 255, 0, 0);
$rec4 = imagecolorallocate($image, 0, 0, 255);
imagefilledrectangle($image, 0, 0, 300, 300, $rec1);
imagefilledrectangle($image, 0, 0, 300, 10, $rec3);
imagefilledrectangle($image, 0, 100, 300, 110, $rec2);
imagefilledrectangle($image, 0, 200, 300, 210, $rec4);
//problem
imagefttext($image, 20, 0, 100, 100, $rec4, $fontfile, $TextString,
//problem end
array());
header('Content-type: image/png');
imagepng($image);
imagedestroy($image);
?>