Has anyone been able to get GD to work for Windows?

Has anyone been able to get GD to work for Windows?

nathan milford發表於
Number of replies: 5

I have a Win2KSP3 box, IIS and PHP 4.2.3 for windows.

I have tried using the php_gd.dll from http://php.weblogs.com/GD as well as installing zlib, libpng and the gd port from http://sourceforge.net/project/showfiles.php?group_id=23617

in php.ini I added:

extension_dir = c:\php\
extension=php_gd.dll

Anytime I access a php page on the server the site hangs and it spits out a blurb about its failure to load php_gd.dll

Any clues?

評比平均分數: -
In reply to nathan milford

Re: Has anyone been able to get GD to work for Windows?

Anders Edenfjord發表於

Hi Nathan!

I had the same problem and has the same hardware as you W2K,IIS5 and PHP 4.2.3 for windows. I tried everything and nothing worked. so I uninstalled PHP and installed the latest version PHP 4.3, made my changes in PHP.ini and now all works well with support for GD2.

I attach my PHP.ini so you can see how I have done

In reply to Anders Edenfjord

Re: Has anyone been able to get GD to work for Windows?

nathan milford發表於

What version of GD?  Where did ya get it?

Would we be able to make your version avaliable on moodle.com?

- nathan

In reply to nathan milford

Re: Has anyone been able to get GD to work for Windows?

Martin Dougiamas發表於
Core developers的相片 Documentation writers的相片 Moodle HQ的相片 Particularly helpful Moodlers的相片 Plugin developers的相片 Testers的相片
PHP 4.3.0 has GD included. http://www.php.net/downloads.php
In reply to Martin Dougiamas

Re: Has anyone been able to get GD to work for Windows?

nathan milford發表於
Swell.  I got it accepting images.  The issue now is that it is not properly displaying them.  I am just getting a placeholder.  is this a php.ini issue?
In reply to Martin Dougiamas

Re: Has anyone been able to get GD to work for Windows?

nathan milford發表於

for some reason it isnt picking it up from the moodledata directory

Moodle is installed in:
c:\root\html\moodle

Moodle data is set to:
c:\root\databases\moodledata

And all of the permissions allow for reading and writing of the files by moodle.

any clues?