Forum Moderators: coopster

Message Too Old, No Replies

How to enable GD in PHP 4.3.3?

Do I have to re-configure...?

         

isorg

10:53 am on Oct 31, 2005 (gmt 0)

10+ Year Member



I am told that the GD library is included in PHP Versions above 4.3. I am running versin 4.3.3 on a Linux machine. However, it seems GD is not enabled by default. Apparantly, GD SHOULD be ready to use with 4.3.3, but in my case somehow it isn't!

My phpinfo() does not list GD as being installed and using any of the GD commands just causes errors. For example gd_info() gives "Fatal error: Call to undefined function: gd_info()".

What is the easiest way of activating GD? I only want to make thumbnails of some JPG images - nothing fancy. Is there an easier way without GD (or Imagemagick)?

I added "extension=gd.so" in my php.ini, but nothing happened.

Do I have to re-compile my PHP and is that as risky as it sounds? ("If it aint broken...")

Many thanks!

isorg

12:07 pm on Oct 31, 2005 (gmt 0)

10+ Year Member



Well, what I eventually did was upgrade Apache and PHP via the server's control panel (Web Host Manager/Cpanel). It seems a more user-friendly way of doing it. It gives an option to recompile with GD.

So now I have upgraded to PHP 4.3.11 and GD seems to be working.

coopster

6:33 pm on Oct 31, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Right on, isorg, needs to be compiled in. For future reference, the PHP Image Functions [php.net] has the Installation steps listed along with necessary requirements. Glad you got it sorted.