Perhaps someone can kindly help me with the following problem.

The following snippet runs perfectly when I use php_gd.dll but generates a
garbled warning message when I switch the extension to php_gd2.dll

"Warning: @Ép in c:\program files\apache group\apache\htdocs\test.php on
line 10"
(line 10 being the imageTTFText call)

  $image = imagecreate(500, 500);

  define( 'BEIGE', imagecolorallocate($image, 245, 245, 220) ); #
Automaticaly 1st is Background color
  define( 'BLACK', imagecolorallocate($image,   0,   0,   0) );

  imageTTFText($image, 32, 0, 100, 100, BLACK, 'c:/WINNT/Fonts/times.ttf',

  header('Content-type: image/png');


PHP General Mailing List (
To unsubscribe, visit:

Reply via email to