| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             [1999-07-02 11:26 UTC] markonen at cvs dot php dot net
  [1999-07-02 11:52 UTC] php-user at mindcontrol dot org
  [1999-07-02 12:32 UTC] php-user at mindcontrol dot org
  [1999-07-02 12:42 UTC] php-user at mindcontrol dot org
  | 
    |||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 07:00:01 2025 UTC | 
<? Header("Content-type: image/gif"); $image = @imagecreate(200,100); $white = @imagecolorallocate($image, 255, 255, 255); $black = @imagecolorallocate($image, 0, 0, 0); $red = @imagecolorallocate($image, 255, 0, 0); $blue = @imagecolorallocate($image, 0, 0, 255); @imagefilledrectangle($image, 0, 0, 199, 99, $red); @imagefilledrectangle($image, 10, 10, 190, 90, $black); @imagettftext($image, 12, 90, 20, 25, $blue, "ARIAL.TTF", "Good-bye, world!"); imagegif($image); @imagedestroy($image); ?> I'm running Apache 1.3.6, PHP 3.0.9 built as a static module, GD 1.5 and libttf 1.2. I built using: ./configure --with-pgsql --with-apache=../apache_1.3.6 --with-gd=/home/hplus/src/gd1.5 PS: I also had to add extra LDFLAGS and LIBS to the Apache config when doing this, as the config process doesn't do it for me. I also had to define HAVE_LIBTTF manually in config.h. Maybe that should be another bug report.