|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-06-29 12:03 UTC] usenet at watson-wilson dot ca
Compiled php 4.2.1 for Apache 1.3.26 using these options: CPPFLAGS=-I/usr/local/include LDFLAGS=-L/usr/local/lib ./configure --prefix=/usr/local \ --with-apache=/usr/src/Apachetoolbox-1.5.54/apache_1.3.26 \ --enable-exif \ --enable-track-vars \ --with-calendar=shared \ --enable-safe-mode \ --enable-magic-quotes \ --enable-trans-sid \ --enable-wddx \ --enable-ftp \ --with-xpm-dir=/usr/X11R6 \ --with-gd=/usr/local \ --enable-gd-native-ttf \ --enable-gd-imgstrttf \ --with-freetype-dir=/usr/local/include/freetype2/freetype/ \ --with-ttf=/usr/local/lib \ --with-zlib \ --with-t1lib=/usr/local \ --with-jpeg-dir=/usr \ --with-png-dir=/usr \ --with-zlib-dir=/usr \ --with-openssl=/usr \ --with-mysql=/usr/local/mysql \ There are no errrors reported during the configure, compile or install. This script: http://watson-wilson.ca/starfrontiers/images/title.php?size=35&text=Test It is no longer working. There are no entries in the apache error logs. It was working prior to php 4.2.1. I was using 4.0.? but can't remember the exact version (sorry). I have searched the web, usenet, php.net, and phpbuilder.com. I have asked to help on usenet and phpbuilder.com. The only reply I had suggested that this might be a bug. If it is not I apologize for wasting your time but I am out of options. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 13:00:02 2025 UTC |
1. I have not updated or changed GD in anyway. 2. I've tried --with-ttf=/usr/local but there was no improvement. Here is the script: <? Header("Content-type: image/png"); // note - must use the absolute font path // be careful about blank lines in your code which will output a blank and confuse browser $font = "/usr/X11R6/lib/X11/fonts/drakfont/WORLDOFW.ttf"; $box = imagettfbbox($size, 0, $font, $text); $xsize = $box[2]-$box[0]+10; $ysize = $box[1]-$box[7]+10; $xstart = ($xsize - ($box[2] - $box[0])) / 2; $ystart = ($ysize - ($box[1] - $box[7])) / 2 - $box[7]; $im = imagecreate($xsize,$ysize); $white = ImageColorAllocate($im, 255,255,255); $black = ImageColorAllocate($im, 0,0,0); $trans=ImageColorTransparent($im,$white); ImageTTFText($im, $size, 0, $xstart, $ystart, $black, $font, $text); Imagepng($im); ImageDestroy($im); ?>