GD Library

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
abdul
Forum Newbie
Posts: 24
Joined: Thu Nov 14, 2002 7:35 am

GD Library

Post by abdul »

Hi there,

I have an Apache installation on FreeBSD with PHP 4.2.3. I want to enable GD library with it. By default PHP 4.2 should have a GD library with it. But, it was showing a version of 1.6.2. But, what I need is GD 2.x. In my server's (FreeBSD) ports collection I have GD 2.1, I installed it and re-compiled it again by using
./configure' '--with-mysql' '--with-gd=/usr/local' '--with-jpeg' '--with-zlib' '--with-apxs2=/usr/local/www/bin/apxs' .
But, still it is showing version 1.6. So, I downloaded the latest version of GD library, installed it and compiled again. Still the version doesn’t change. Does anybody have any idea on what is happening here? Please note, I have only re-started apache, not the sever itself. I don’t want to do that as many websites are running on the machine. Any help will be appreciated.

Thanks,

-Abdul
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

Is it showing version 1.6 or does it say version higher than 1.6? Have you tested any of the GD2 only functions like imagefilledellipse() to see if they work?

Mac
abdul
Forum Newbie
Posts: 24
Joined: Thu Nov 14, 2002 7:35 am

Post by abdul »

Yes, I have tested with imagecreatetruecolor() and it is showing this error
Fatal error: Call to undefined function: imagecreatetruecolor()
This is what I get from phpinfo()
GD Support enabled
GD Version 1.6.2 or higher
GIF Read Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
Many Thanks,

-Abdul
abdul
Forum Newbie
Posts: 24
Joined: Thu Nov 14, 2002 7:35 am

Post by abdul »

What I have is php 4.3.1

Thanks,
Post Reply