|
|
|
| код:
Header("Content-Type: image/png");
$img = imagecreatefrompng("./cmsimg/forma.png");
$clWhite = imagecolorallocate($img,255,255,255);
$clBlack = imagecolorallocate($img,0,0,0);
$FONT = "/home/hosts/raminfo.by/www/includes/arialn.ttf";
$SIZE = 10;
$stroka = 'SHIT';
imageTTFtext($img,$SIZE,0,30,30,$clBlack,$FONT,$stroka);
imagepng($img);
imagedestroy($img);
|
SCRIPT_FILENAME /home/hosts/raminfo.by/www/phpinfo.php
gdGD Support enabled
GD Version bundled (2.0.28 compatible)
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled
файл шрифта отзывается на file_exists
скрипт ругается (если закомментить header) вот как: Fatal error: Call to undefined function: imagettftext() in /home/hosts/raminfo.by/www/empty.php on line 17
17ая строка imagettftext, если кто не понял...
разрулите плиз | |
|
|
|
|
|
|
|
для: Hidden Demon
(26.03.2007 в 21:32)
| | This function requires both the GD library and the FreeType library. Установлена ? | |
|
|
|
|
|
|
|
для: Nemesis
(26.03.2007 в 22:09)
| | в phpinfo ничего по этому поводу нету...
если не установлена, то как установить? | |
|
|
|
|
|
|
|
для: Nemesis
(26.03.2007 в 22:09)
| | topic up | |
|
|
|
|
|
|
|
|
для: Nemesis
(28.03.2007 в 12:24)
| | спасибо | |
|
|
|
|
|
|
|
для: Nemesis
(28.03.2007 в 12:24)
| | попросили админов перекомпилить php с ключиками вроде этих:
--with-gd
--enable-gd-native-ttf
--with-png
--with-zlib-dir=/usr/local/lib/zlib-1.2.1
--with-ttf
--with-jpeg-dir=/usr/local/lib/jpeg-6b/
--with-freetype-dir=/usr/local/lib/freetype-2.1.9/
--with-xpm-dir=/usr/X11R6/
|
заработало. Оказалось freetype стоял, только php про это не знал | |
|
|
|