GD version for windows
Number of replies: 152-where should it be placed?
thanks...
Re: GD version for windows
2. In PHP Windows distribution GD -library is built in.
Re: GD version for windows
to be as set and available but it didn't accept my setting.
I have the php 4.3.3
How I can be sure that I have the right version of GD and where it is installed?
Re: GD version for windows
Load the following page:
http://yoursite/yourmoodle/admin/phpinfo.php
Look for the GD info on that page.
Re: GD version for windows
Login as admin -> admin -> click the phpinfo link at the bottom
I sometimes forget the time saving new features
Re: GD version for windows
You might also need to enable the extension, it's disabled by default....
Check your php.ini file and search for
extension=php_gd2.dll
and make sure it isn't commented out.
Re: GD version for windows
Also make sure to put the php_gd2.dll from the extensions folder in your PHP install folder into the /WINNT/system32 folder on your server.
Once I did this moodle autodiscovered the GD install and version as 2.0 and all is well
Re: GD version for windows
I just installed PHP using the Windows Installer. I do not see an "extensions" directory in "c:\\php" (which is where i told the installer to install php).
I do see a directory:
"C:\WINNT\\php-4.3.4-Win32\\"
Which has a "dlls" directory inside of it. Inside of this directory is:
gds32.dll
I tell the moodle variables page that 2.x is installed, however it reverts back to the "not installed" setting upon refresh. My phpinfo has nothing about gd in it. When I upload any jpegs or gifs in the profile page, it tells me these formats are not supported.
I cannot find php_gd2.dll anywhere on my machine.
Re: GD version for windows

Re: GD version for windows
Hello, i have some similar problem with the GD library, when i try to see a graph generated from a survey i can't see anything, and when i try to see the graph directly from my browser i only can see the following messages...
Warning: imagettfbbox(): Could not find/open font in c:\program files\easyphp1-7\www\dsi_acatlan\lib\graphlib.php on line 1320
Warning: imagettfbbox(): Could not find/open font in c:\program files\easyphp1-7\www\dsi_acatlan\lib\graphlib.php on line 1334
The other problem that i have is when i try to see the graph generated from the activity option on the participants option.... in this case i can see a graph, but there aren't any legends..
i belive that this mus be related to some configuration, but i dont know how to do it, please can someona help me?
i have an laptop with winxp home edition, and the easyphp1-7 installed...
thank you for you help
Re: GD version for windows
I currently can't get php_gd2.dll to run at ALL either...
I have followed everyones steps so far I even changed this extention location in the php.ini to
Directory in which the loadable extensions (modules) reside.
extension_dir = "c:\WINNT\system32"
I still keep gettng an error telling me it is unable to load the dll
"Specified modual can not be found" ?
Any Ideas ..TIA
Re: GD version for windows
Hi Mike!
Did you restart your computer after installing the GD extensions? If not, try that.
Hope that helps.
WP1
Re: GD version for windows
tried it ...
Thanx
Anyone else ?
Re: GD version for windows
This is how I fixed it on my test machine. Edit c:\windows\php.ini to have the following:
Place the extension DLLs in c:\php\extensions (or in c:\windows\system32). In this case it should have at least php_gd2.dll in that directory.
Under "Paths and Directories" section, edit the following (match the path of where you stored the DLLs):
extension_dir = c:/PHP/extensions/- Under "Dynamic Extensions" section, uncomment the desired extensions:
;extension=php_fdf.dll
;extension=php_filepro.dll
;extension=php_gd.dll
extension=php_gd2.dll <-- remove the semicolon in front of this extension
... - Make sure the version of PHP running on the server also matches the version of the DLLs. If you installed the IIS version of PHP (PHP 4.3.x installer), it will not contain the php extension dlls. If later you downloaded the other version of PHP (PHP 4.3.x zip file, for Apache, etc.) which has all those extensions, make sure both versions match (4.3.4 version, for example). In other words, the version of PHP must match the version of the extension DLLs. Do not mix and match.
Re: GD version for windows
Thank you, I'll give that a try after I upgrade to 1.2, which im in the middle of now ...
Re: GD version for windows
Siegwart Mayr you were right ..... it was a version error.
I had originally installed php 4.3.2 installer package on IIS 5 a while back.
Then the other day when I searched for php_gd2.dll I must have gotten a different ver of it from some other package
I went to the php.net archives and pulled up the 4.3.2 ver
works GREAT!!!
Thank you everyone for your help in this matter !!
BTW ... upgraded to 1.2 flawlessly ;)
now I just gotta figure out how to add mulimedia stuff