hobojjr Posted September 6, 2006 Share Posted September 6, 2006 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. Quote Link to comment Share on other sites More sharing options...
btherl Posted September 6, 2006 Share Posted September 6, 2006 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. Quote Link to comment Share on other sites More sharing options...
hobojjr Posted September 6, 2006 Author Share Posted September 6, 2006 thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.