I unfortunately do not know the exact previous version, I'm running
sarge, and the update happened within the last week. Here is the script:
_________________________________________________________
<?php
header("Content-type: image/jpg");
$string = "Hello World";
$im = imagecreatetruecolor(200,36);
$grey = imagecolorallocate($im, 99, 99, 99);
$white = imagecolorallocate($im, 255,255,255);
$black = imagecolorallocate($im, 0,0,0);
imagefill($im, 0, 0, $grey);
imagestring($im, 5, 0, 0, "Hello world!", $white);
imagettftext($im, 12, 0, 10, 30, $white, "arial.ttf", "Hello World");
imagejpeg($im,"", 100);
imagedestroy($im);
?>
_________________________________________________________
I've also provided examples of this script in action on two web
servers.
Functioning - Gentoo. GD version 2.0.28 PHP 4.3.10
http://www.acceltech.ca/test.php
Non-funtioning - Sarge GD 2.0 or higher, PHP 4.3.10-8
http://www.zenacus.com/scripts/ttf_test.php
--
Brock Campbell
-- System Integration, Consulting, Disaster Recovery --
--- Accelerated Technology ---
-- [EMAIL PROTECTED] (306)222-2259 --
----------- www.acceltech.ca -----------
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]