Posted on 2004-03-27
Last Modified: 2013-12-13

I have my webserver running on Windows 2000 Server using IIS.
In my php.ini i have:

extension_dir = "C:\PHP\"

and i have the php_gd.dll in C:\PHP\
Now whenever i try to access any page on my server, a message box comes up on the server saying:
Unknown(): Unable to load dynamic link library 'C:\PHP\php_gd.dll' - The specified procedure could not be found.

I have tried putting the extension_dir as different directories and moving the .dll to those directories but it always comes up with that error just with the C:\PHP\ changed.
How can i make it recognise the file exists?

By the way, this is the only extension i have ever used.
Question by:enasni_mark
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Expert Comment

ID: 10695421
have you reloaded the web server between the times?

Expert Comment

ID: 10696794

php_gd.dll calls a lib(include()) gds32.dll...

You need to set your (lib folder) -> via your OS path.....

follow this.....

Go To >> My Computer >> right click >> scroll down to "Properties"

System Properties opens....

left click >> Advanced (tab) >> go to bottom >> left click >> Environment Variables

Environment Variables opens...

In the "LOWER" window >> left click to highlite "Path" >> left click the "Edit" button below the lower window!

Edit System Variable opens....

In the "Variable Value" check to see what the last single character is....

if it is this character ";" <- without the quotes

Then add the path to your PHP "dlls folder" right after the last character!


Current "Path" Variable Value....

E:\www\perl\bin\;%SystemRoot%\system32;e:\sql\lib;e:\spellcheck\bin; <- end with ";"

Your PHP path to your PHP "dlls" folder


Your new path value would be.....


If the last character is not ";" <- without the quotes

Then add it to the end of your path before adding your your PHP "dlls folder"


Current "Path" Variable Value....

E:\www\perl\bin\;%SystemRoot%\system32;e:\sql\lib;e:\spellcheck\bin <- does not end with ";"

Your PHP path to your PHP "dlls" folder


Your new path value would be.....


click "OK" (2) times to save changes

Go to "Start" >> "Run", type....

net stop iisadmin /y

Click "OK"

wait till it is done, it will self close....

Then type....

net start w3svc

Click "OK" this will restart IIS services

// if you have FTP running, run this too!

net start msftpsvc

// if you have SMTP running, run this too!

net start smtpsvc



Author Comment

ID: 10698244
what should the extension_dir be set to?
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

LVL 10

Expert Comment

ID: 10702856
That's up to you really - typically it would live under c:\P.H.P\ like for instance c:\P.H.P\extensions\

As long as the path in your php.ini matches, it'll work wherever you put it.

If you're referring to the lib folder, that can go wherever you want too as long as you set the environment variable as described above.  You can skip that though, if you just put gds32.dll in one of the paths that's already mentioned there.  I usually put extension libraries in my WINDOWS/system32 folder (and forget about them ;) ).  The bit above that says %SYSTEMROOT% is the WINDOWS (or sometimes WINNT) folder.

Expert Comment

ID: 10791155
extension_dir = ./extensions/
LVL 10

Expert Comment

ID: 10796419
On Windows you need to use backslashes, c:\php\extensions\

Author Comment

ID: 10796992
i don't have a clue what the problem was but i solved it by uninstalling php and then just using the php zip file and extracting it. then put the extension_dir as "./extensions/"
works fine now:)

Author Comment

ID: 10796996
i don't really know what to do with the points, what should i do?

Accepted Solution

Lunchy earned 0 total points
ID: 10863458
Closed, 125 points refunded.
Friendly Neighbourhood Community Support Admin

Featured Post

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Change Wording in Wordpress Plugin 4 40
geting data from the array list 6 38
phpmyadmin memory error 55 96
how can I see the time difference in only seconds? 4 40
Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question