Click to See Complete Forum and Search --> : GD problem
I have download GD... then make some modification in php.ini to make the gd work. But everytime it want to load php, the warning occur 'Unable to locate php_gd.dll'. Even I have refer that libary to its path, still doesn't work. Anybody......
W2k, IIS5 & MySQL
corsc
06-27-2001, 11:48 PM
This is usually a problem with the extensions setting in the php.ini.
Please double check this: It should be something like:
(if your php is installed on c:\php)
the php.ini should read:
extension_dir = c:/php/extensions/
hope this helps.
the php.ini should read:
extension_dir = c:/php/extensions/
Even I have done like you said...... it still showing
Unable to load dynamic library 'c:/php/extension/php_gd.dll'- The specified procedure could not be found.
ps: I hate this..... :-(
freshneco
06-28-2001, 01:33 AM
i have got from somewhere the php_gd_gif.dll then rename it php_gd.dll then replace it in
php with original php_gd.dll but this time i cannot connect to local host...or are there other ways to using gif format in GD library
thanks ..
yozx wrote:
-------------------------------
I have download GD... then make some modification in php.ini to make the gd work. But everytime it want to load php, the warning occur 'Unable to locate php_gd.dll'. Even I have refer that libary to its path, still doesn't work. Anybody......
W2k, IIS5 & MySQL
mithril
06-28-2001, 02:39 AM
Yozx,
When you said that you downloaded PHP, I'm assuming that you ment the php_gd.dll extension from www.php.net and not the GD module from www.boutell.com? Stupid question I know, but you never know:) Did you download the php_gd.dll extension compiled against the PHP version you have installed? The extensions are version dependent. Is the php_gd.dll file in the c:/php/extensions folder? Unless you renamed the folder, the default path to the extension modules is "c:/php/extensions/" *not* "c:/php/extension/". Are you running PHP as a CGI process or ISAPI filter? If you're running it as an ISAPI filter you have to completely shutdown the IIS Admin service, then restart it and the IIS service. Restarting IIS alone is not enough. HTH,
Cheers,
Geoff A. Virgo
mithril
06-28-2001, 02:50 AM
Necmettin,
There is really no way of using GD in PHP to play with the GIF format. GIF support is now deprecated(sp?) as it was dropped by the GD crowd due to licensing restrictions Unisys, the owner's of the GIF compression algorithm, have imposed upon it's usage. Unisys are going the way of Microsoft, they are threatening to sue every website using GIF images which hasn't paid them a licensing fee. That obviously does jive with Open Source community so we've moved on to other options...... PNG's are actaully just as compact and offer better resolution anyways.
PHP extensions are compiled against a specific version so an extension compiled for 4.0.5 won't work with 4.0.4 or 4.0.6, for example. I forget the exact version where PHP moved to the JPEG/PNG support version of GD, but the GD version number where the switch was made was 1.6.2. To use GIF, you're tying yourself to an old PHP version with no hope of updates unless you want to custom hack it everytime. I'd suggest you move to JPEG's and PNG's unless it's going to cause a huge amount of re-coding (and you don't mind paying Unisys for a GIF license). HTH,
Cheers,
Geoff A. Virgo
PHP Builder
Copyright WebMediaBrands Inc. All Rights Reserved.