Hi, I am using following script to generate a dynamic picture from a text string. It works fine for both my developing server and the application server (a virtual host). Both server are Linux RH.
<? $im = ImageCreate (110, 16); $white = ImageColorAllocate ($im, 255, 255, 255); $black = ImageColorAllocate ($im, 0, 0, 0); $blue = ImageColorAllocate ($im, 0, 0, 255); // ImageFtText ($im, 10, 0, 0, 1, $black, "/path/verdana.ttf", "hello"); $font = 2; ImageString ($im, $font, 0, 1, "hello", $black); Header ("Content-type: image/png"); ImagePNG($im); ImageDestroy($im); ?> The ImageString utilizes a php built-in font to generate image. However if replace this function with ImageFtText() (see the commented line), it will get error on both servers. On my developing server the error is "no ttf support". I checked phpinfo and in the GD section it says it does not have ttf support, so I would assume a recompiling with ttf support will resolve the issue. On the application server since the server API is CGI but not Apache, all type of errors will be shown as 500 internal error. I checked the phpinfo in its GD section ttf support is enabled. I tried several different types of fonts but all get same error. I found those font files from windows and uploaded them to the server. I don't if the Windows fonts could work for Linux. Alex Shi -- ================================================== Cell Phone Batteries at 30-50%+ off retail prices! http://www.pocellular.com ================================================== TrafficBuilder Network: http://www.bestadv.net/index.cfm?ref=7029 ================================================== -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php