Solved

Runing PHP with mssql, unable to load dynamic libraries

Posted on 2004-04-26
1
699 Views
Last Modified: 2006-11-17
I am trying to run PHP with a mssql database. I have uncommented the line ,extension=php_mssql.dll,  and added
ntwdblib.dll to the system32 file. I am runing Microsoft XP professional. When I run my code it comes up with "Warning Unknown(): unable to load dynamic library './php_mssql.dll'-The specified module could not be found."  what do I need to do to make PHP work with mssql.
0
Comment
Question by:WayneFischer
1 Comment
 
LVL 3

Accepted Solution

by:
frederichenry earned 250 total points
ID: 10929402
Make sure that php_mssql.dll resides in your extensions directory, and that your extension directory is specified correctly in the php.ini to the following:

extension_dir = "c:\php\extensions"

Assuming that c:\php is where you've installed php.

The dll's in the c:\php\dlls folder should be copied over to the windows\system32 directory before starting IIS.

Lastly, the ntwdblib.dll file bundled with PHP does not work with MSSQL.  Copy the version that is on your MSSQL server (in system32) and put it in the same location on your web server.

0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

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 …
I imagine that there are some, like me, who require a way of getting currency exchange rates for implementation in web project from time to time, so I thought I would share a solution that I have developed for this purpose. It turns out that Yaho…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to dynamically set the form action using jQuery.

757 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now