Hi all. I am trying to run a php script I found to create a thermometer graph. This relies on the GD graphic library to run. When I run the script I get a empty box like a missing graphic file.
Here is my evnironment
Windows 2003 Server running IIS 6 with all the latest patches
PHP 5.1.1 installed and running (php.info works fine, but does not show the gd ext info. Installed via the Windows installer package.

Here is what I have done so far:
1. removed the ; before extension=php_gd2.dll in the php.ini
2. modifed the extension directory to extension_dir= "D:/PHP/ext" where the extensions are installed.
tried running the var_dump(gd_info()) command to get info. I got the following error
"Fatal Error: call to undefined function dg_info() in D:\dmrintranet\wwwroot\dginfo.php on line 7.
Stopped and started IIS and still not luck.

Not sure where to go from here. Any assistance would be greatly appreciated.

Flanman

    If you look at the php_info() output and the GD sectino is not appearing then the GD libary is still not being loaded

      I kind of figured that. Any suggestions on why it may not be loading?

        When you look at the output of your php_info, do you D:/PHP/ex in the extension_dir?

        If you don't scan your PHP.ini to make sure you're not setting it somewhere else. Also check the Configuration File (php.ini) Path on php_info() is pointing to the php.ini file you have been modifying to make sure that it is using that one.

        Sorry if this sounds trivial, just wanting to cover the bases first

          Write a Reply...