Jump to content


Photo

undefined function


  • Please log in to reply
2 replies to this topic

#1 hobojjr

hobojjr
  • Members
  • PipPip
  • Member
  • 11 posts

Posted 06 September 2006 - 01:02 AM

Hi,

How can some function be undefined or not found in a php version which supports them?

For example imagettfbbox (PHP 3 >= 3.0.1, PHP 4, PHP 5) is undfed undefined even though my php is  4.4.2.



#2 btherl

btherl
  • Staff Alumni
  • Advanced Member
  • 3,893 posts
  • LocationAustralia

Posted 06 September 2006 - 01:25 AM

The function is part of an extension which may not be installed in your copy of PHP.  In this case it's the GD extension.  The main page for a group of functions will tell you if you need a particular extension to use that set of functions.

At http://sg.php.net/ma...n/ref.image.php you will see:

To enable GD-support configure PHP --with-gd[=DIR], where DIR is the GD base install directory. To use the recommended bundled version of the GD library (which was first bundled in PHP 4.3.0), use the configure option --with-gd. GD library requires libpng and libjpeg to compile.


If you are using a binary distribution, then how you enable this extension will depend on your distribution.

#3 hobojjr

hobojjr
  • Members
  • PipPip
  • Member
  • 11 posts

Posted 06 September 2006 - 01:54 AM

thanks




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users