Jump to content

Recommended Posts

Ok,

 

I'm going nuts here....

 

I'm doing some work for my company coding PHP using version (wait for it...) 4.3.9.  While I've been lobbying to get this upgraded I have to put up with the fact that I'm stuck with it for a while longer.

 

The problem I have is that I need to use the graphics functions contained in the gd library.  From what I have read the gd library is supplied as standard in version 4.3.x.  So I presume there is nothing further to install.

 

Therefore I have requested our DBA's to uncomment out the extension path directive (I don't have access to the php.ini file) and uncomment out the "extension=php_gd2.dll".  I then asked them to email me the php.ini file... extracts for the various sections now look as follows:

 

; Directory in which the loadable extensions (modules) reside.

extension_dir = "./"

 

.... and

 

;extension=php_filepro.dll

extension=php_gd2.dll

;extension=php_gettext.dll

 

The DBAs also did an Apache restart...

 

but it still doesn't work.

 

We are running Red Hat Linux Enterprise edition (not sure of version, but it is not the latest).

 

I also asked the DBA's to do a "find" for php_gd2.dll, but they couldn't find this file on the server!,  this I find confusing as I would have thought if gd was supplied as standard that this file would be somewhere!!!!

 

Can someone also answer the question as to what I'm supposed to see in phpinfo() that indicates that this has been installed and is running.

 

Thanks in advance

 

 

Link to comment
https://forums.phpfreaks.com/topic/100457-gd-library/
Share on other sites

We are running Red Hat Linux Enterprise edition (not sure of version, but it is not the latest).

If you're using Linux then PHP extensions will not be extension_name.dll by extension_name.so

 

Also extension_dir should be an absolute path to PHP's extension folder, eg:

extension_dir = "/path/to/php4/extensions"

Change the path in red to your PHP4 installation path.

 

Also make sure that when PHP got installed that the --with-gd flag was used. You can check this when running phpinfo() and looking at the Config Command line (think it is called that).

 

Another thing as you're using Red Hat linux you should be able to install the GD PHP extension via Red Hats package manager (this is will only work if PHP was originally installed from the package manger).

Link to comment
https://forums.phpfreaks.com/topic/100457-gd-library/#findComment-514040
Share on other sites

Thanks for the feedback guys,

 

I've done a scan of the phpinfo() and there is no reference to "gd" anywhere in the file.

 

So not being a linux guru I guess the basic question now is can I rerun the "./configure...." command as it is stated in the phpinfo() file and incorporate the "--with-gd" or

 

do I just run the "./configure --with-dg" or

 

is this a lot more complicated than that....

 

Thanks in advance

Link to comment
https://forums.phpfreaks.com/topic/100457-gd-library/#findComment-514291
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.