imagettfbbox

imagettfbbox

am 05.03.2007 08:10:45 von madunix

------=_Part_143956_8409945.1173078645151
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

am trying to build a water mark on the web, when i call the
function imagettfbbox()
I get the following *Fatal error*: Call to undefined function imagettfbbox()
in */usr/local/apache/htdocs/captcha.php* on line *60*
OS: RHEL4
Pack: Apache2, PHP5.2, GD
Config:
'./configure' '--with-apxs2=/usr/local/apache/bin/apxs' '--enable-shared'
'--with-mysql=/usr/local/mysql' '--with-zlib-dir=/usr/lib/'
'--enable-versioning' '--enable-track-vars=yes'
'--enable-url-includes--enable-sysvshm=yes' '--enable-sysvsem=yes'
'--with-gettext' '--enable-mbstring' '--enable-ftp' '--enable-calendar'
'--with-config-file-path=/etc'
'--with-oci8=/u01/app/oracle/oracle/product/10.2.0/db_1' '--enable-soap'
'--with-gd' '--enable-xml' '--with-xml' '--enable-sysvsem'
'--enable-sysvshm' '--enable-sysvmsg' '--with-regex=system' '--with-png'
'--with-ttf=/usr/lib' '--enable-sigchild'
'--with-jpeg-dir=/usr/local/lib/jpeg-6b'
'--with-freetype-dir=/usr/local/lib/freetype' '--with-png-dir=/usr/lib/'

gd
GD Support enabled
GD Version bundled (2.0.28 compatible)
GIF Read Support enabled
GIF Create Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled

any help
--
madunix

------=_Part_143956_8409945.1173078645151--

Re: imagettfbbox

am 05.03.2007 12:36:54 von robleyd

Mad Unix wrote:

> am trying to build a water mark on the web, when i call the
> function imagettfbbox()
> I get the following *Fatal error*: Call to undefined function
> imagettfbbox() in */usr/local/apache/htdocs/captcha.php* on line *60*
> OS: RHEL4
> Pack: Apache2, PHP5.2, GD
> Config:
> './configure' '--with-apxs2=/usr/local/apache/bin/apxs' '--enable-shared'
> '--with-mysql=/usr/local/mysql' '--with-zlib-dir=/usr/lib/'
> '--enable-versioning' '--enable-track-vars=yes'
> '--enable-url-includes--enable-sysvshm=yes' '--enable-sysvsem=yes'
> '--with-gettext' '--enable-mbstring' '--enable-ftp' '--enable-calendar'
> '--with-config-file-path=/etc'
> '--with-oci8=/u01/app/oracle/oracle/product/10.2.0/db_1' '--enable-soap'
> '--with-gd' '--enable-xml' '--with-xml' '--enable-sysvsem'
> '--enable-sysvshm' '--enable-sysvmsg' '--with-regex=system' '--with-png'
> '--with-ttf=/usr/lib' '--enable-sigchild'
> '--with-jpeg-dir=/usr/local/lib/jpeg-6b'
> '--with-freetype-dir=/usr/local/lib/freetype' '--with-png-dir=/usr/lib/'
>
> gd
> GD Support enabled
> GD Version bundled (2.0.28 compatible)
> GIF Read Support enabled
> GIF Create Support enabled
> PNG Support enabled
> WBMP Support enabled
> XBM Support enabled
>
> any help
> --
> madunix
In phpinfo, under GD you should also have a line

FreeType Support enabled

I'd guess that your configure for freetype is wrong, but I'm not sure where
you might find it - perhaps /usr/local ??



Cheers
--
David Robley

Don't use no double negatives.
Today is Prickle-Prickle, the 64th day of Chaos in the YOLD 3173.

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

RE: imagettfbbox

am 05.03.2007 15:08:02 von Bastien Koert

Can you supply the code...because if you are trying to use the php
imageftbbox function

a. you spelled it wrong

b. do you have the appropriat arguements ( float $size, float $angle, string
$font_file, string $text [, array $extrainfo] )


Bastien

>From: "Mad Unix"
>To: php-db@lists.php.net
>Subject: [PHP-DB] imagettfbbox
>Date: Mon, 5 Mar 2007 09:10:45 +0200
>
>am trying to build a water mark on the web, when i call the
>function imagettfbbox()
>I get the following *Fatal error*: Call to undefined function
>imagettfbbox()
>in */usr/local/apache/htdocs/captcha.php* on line *60*
>OS: RHEL4
>Pack: Apache2, PHP5.2, GD
>Config:
>'./configure' '--with-apxs2=/usr/local/apache/bin/apxs' '--enable-shared'
>'--with-mysql=/usr/local/mysql' '--with-zlib-dir=/usr/lib/'
>'--enable-versioning' '--enable-track-vars=yes'
>'--enable-url-includes--enable-sysvshm=yes' '--enable-sysvsem=yes'
>'--with-gettext' '--enable-mbstring' '--enable-ftp' '--enable-calendar'
>'--with-config-file-path=/etc'
>'--with-oci8=/u01/app/oracle/oracle/product/10.2.0/db_1' '--enable-soap'
>'--with-gd' '--enable-xml' '--with-xml' '--enable-sysvsem'
>'--enable-sysvshm' '--enable-sysvmsg' '--with-regex=system' '--with-png'
>'--with-ttf=/usr/lib' '--enable-sigchild'
>'--with-jpeg-dir=/usr/local/lib/jpeg-6b'
>'--with-freetype-dir=/usr/local/lib/freetype' '--with-png-dir=/usr/lib/'
>
>gd
>GD Support enabled
>GD Version bundled (2.0.28 compatible)
>GIF Read Support enabled
>GIF Create Support enabled
>PNG Support enabled
>WBMP Support enabled
>XBM Support enabled
>
>any help
>--
>madunix

____________________________________________________________ _____
RealLiveMoms: Share your experience with Real Live Moms just like you
http://www.reallivemoms.ca/

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: imagettfbbox

am 12.03.2007 09:16:20 von Haydar TUNA

Hello,
Firstly, download the freetype 2 tar.gz package from
www.freetype.org web site and then install this package /usr/local. If you
finish this step, you can install PHP and freetype together. But if you
download and install GD, freetype 2, libpng, zlib,jpeg latest packages and
compile them with PHP together, your problem will be fixed easily.:)


--
Haydar TUNA
Republic Of Turkey - Ministry of National Education
Education Technology Department Ankara / TURKEY
Web: http://www.haydartuna.net

""Mad Unix"" wrote in message
news:4d3f56c90703042310y66e6f826ud9317cd522e97763@mail.gmail .com...
> am trying to build a water mark on the web, when i call the
> function imagettfbbox()
> I get the following *Fatal error*: Call to undefined function
> imagettfbbox()
> in */usr/local/apache/htdocs/captcha.php* on line *60*
> OS: RHEL4
> Pack: Apache2, PHP5.2, GD
> Config:
> './configure' '--with-apxs2=/usr/local/apache/bin/apxs' '--enable-shared'
> '--with-mysql=/usr/local/mysql' '--with-zlib-dir=/usr/lib/'
> '--enable-versioning' '--enable-track-vars=yes'
> '--enable-url-includes--enable-sysvshm=yes' '--enable-sysvsem=yes'
> '--with-gettext' '--enable-mbstring' '--enable-ftp' '--enable-calendar'
> '--with-config-file-path=/etc'
> '--with-oci8=/u01/app/oracle/oracle/product/10.2.0/db_1' '--enable-soap'
> '--with-gd' '--enable-xml' '--with-xml' '--enable-sysvsem'
> '--enable-sysvshm' '--enable-sysvmsg' '--with-regex=system' '--with-png'
> '--with-ttf=/usr/lib' '--enable-sigchild'
> '--with-jpeg-dir=/usr/local/lib/jpeg-6b'
> '--with-freetype-dir=/usr/local/lib/freetype' '--with-png-dir=/usr/lib/'
>
> gd
> GD Support enabled
> GD Version bundled (2.0.28 compatible)
> GIF Read Support enabled
> GIF Create Support enabled
> PNG Support enabled
> WBMP Support enabled
> XBM Support enabled
>
> any help
> --
> madunix
>

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php