Image Creation Problems (Displaying Text)
Posted: Mon Dec 06, 2004 5:50 pm
I'm working on a script for my site to display a random quote from my database (I know how to do that - I'll implement once I get this working). However, my code doesn't want to show the text! My font url is correct (you can check for yourself). What's wrong with my code? http://www.4d5e6f.com/randomquote.php
Code: Select all
<?php
header("Content-type: image/gif");
$quote = "4d5e6f.com - a god within itself";
$im = imagecreate(400,32);
$background = imagecolorallocate($im,255,255,255);
$grey = imagecolorallocate($im,100,100,100);
$black = imagecolorallocate($im,0,0,0);
imagerectangle($im,0,0,399,31,$black);
imagettftext($im,12,0,0,0,$black,"http://www.4d5e6f.com/Vera.ttf",$quote);
imagegif($im);
imagedestroy($im);
?>