GD support in PHP 4.3 under Win2K
Moderator: General Moderators
GD support in PHP 4.3 under Win2K
I recetly installed PHP4.3 using the Windows Installer (not the binary files).
As I can't get the ImageCreateFromPNG funtion to work (no output whatsoever) I assume that the installer hasn't included the GD lib.
I've no idea how to check, or how to include it if it hasn't been. Searched the web for clues, but without success.
Any help/advice/pointers much appreciated.
As I can't get the ImageCreateFromPNG funtion to work (no output whatsoever) I assume that the installer hasn't included the GD lib.
I've no idea how to check, or how to include it if it hasn't been. Searched the web for clues, but without success.
Any help/advice/pointers much appreciated.
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
You could install the binary files over the one's installed by the self-installer, just follow the instructions provided with the download:
http://www.php.net/manual/en/install.wi ... ows.manual
That way you'd get all the extensions plus a few other bits and pieces not included in the self-installer.
I figured though that the GD.dll must be available elsewhere (for an easier install) so did a Google search which came up with the following site:
http://elegac.free.fr/commun/telecharge ... stats=true
Mac
http://www.php.net/manual/en/install.wi ... ows.manual
That way you'd get all the extensions plus a few other bits and pieces not included in the self-installer.
I figured though that the GD.dll must be available elsewhere (for an easier install) so did a Google search which came up with the following site:
http://elegac.free.fr/commun/telecharge ... stats=true
Mac
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
Thanks for the replies.
Tried your suggestion earlier, but had problems with the extension_dir setting - whatever I tried, keep getting the "cannot find directory or file" error when restarting Apache.
I'm using Win2K, and have my extensions in C:\PHP\extensions directory - could you tell me what the line in php.ini should be?
; Directory in which the loadable extensions (modules) reside.
extension_dir = ./
The obvious is
extension_dir = C:\php\extensions - this doesn't work for me!
Tried your suggestion earlier, but had problems with the extension_dir setting - whatever I tried, keep getting the "cannot find directory or file" error when restarting Apache.
I'm using Win2K, and have my extensions in C:\PHP\extensions directory - could you tell me what the line in php.ini should be?
; Directory in which the loadable extensions (modules) reside.
extension_dir = ./
The obvious is
extension_dir = C:\php\extensions - this doesn't work for me!
- twigletmac
- Her Royal Site Adminness
- Posts: 5371
- Joined: Tue Apr 23, 2002 2:21 am
- Location: Essex, UK
Try setting your extension_dir as:
I remember having to play around with that for a bit to get it to work and our server (Win2K also) seems happy with the above.
Mac
Code: Select all
extension_dir = ./extensionsMac
I set it to the absolute path of the .dll-dir which is currently
Code: Select all
extension_dir = C:/Programme/php423/extensions