I'd be a happy camper if I could just get these GD text functions to work, but so far they only produce, well, nothing. Here's what I'm working with:
Code: Select all
header("Content-type: image/png");
$im = imagecreate(200,100);
$background_color = imagecolorallocate ($im, 100, 50, 25);
$white = imagecolorallocate($im, 255, 255, 255);
$fontfile = "arial.ttf";
imagefttext($im, 12, 0, 0, 0, $white, $fontfile,"Test string");
imagepng($im);
imagedestroy($im);
I have tried using the full file path and also omitting the .ttf extension. I have tried imagettftext() as well as imagefttext() and both of them return absolutely nothing, not even an error. I've determined that the functions are returning false but I have no idea why. This is running on an WinNT system, php 4.3.3, GD 2.015.
Any help would be GREATLY appreciated. Thanks.