Jump to content


This topic is now archived and is closed to further replies.


undefined function

Recommended Posts


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.

Share this post

Link to post
Share on other sites
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/manual/en/ref.image.php you will see:

[quote]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.[/quote]

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

Share this post

Link to post
Share on other sites


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.