трабла с ImageTTFText(); =(((

SLPT

Новичок
трабла с ImageTTFText(); =(((

воть кусок кода:

$height = 12;
$width = 70;
$im = ImageCreate($width, $height);
$bg = ImageColorAllocate ($im, 255, 255, 255);
$black = ImageColorAllocate ($im, 0, 0, 0);
19>ImageTTFText ($im, 9, 0, 1, 10, $black, 'tahoma.ttf', $value);
ImagePng ($im);
ImageDestroy($im);

вот что кричит! :(
Fatal error: Call to undefined function: imagettftext() in /home/chatoofka/domains/chatoffka.net/public_html/schat/code.php on line 19

файл tahoma.ttf лежит тут же, в этой папке ... имя указываю привильно
подскажите как решить проблему?!
 

alexwans

Новичок
If you have configured and compiled PHP with all the necessary command-line options and still get the error:

Fatal error: Call to undefined function imagettftext()

Try doing a "make clean" before building the php apache module:

./configure [...]
make clean
make
make install

This may solve your problem (and hopefully keep you from wasting hours trying different compile options!)
- - - - - - - - - - - -
Взято из комментов к функции: http://php.net/ImageTTFText
 

SLPT

Новичок
не могу я перенастроить модуль апачя! ((
пользуюсь услушами хостинга ... =((

не могу даже понять почему эта эррора выползает! (
в чем еще может быть причинА?
 

alexwans

Новичок
Fatal error: Call to undefined function imagettftext()
И указывает однозначно на проблему - функция не определена, значит её просто нет, точка.
Можно обратиться к хостеру, они сделают

./configure [...]
make clean
make
make install

за Вас
 

SLPT

Новичок
ок .. спасибо ))
прочитал только что похожие проблемы ... понял!

будем надеяться что перекомпелируют пхп! =)
 
Сверху