Solved

Runing PHP with mssql, unable to load dynamic libraries

Posted on 2004-04-26
1
707 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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…
Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

919 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

15 Experts available now in Live!

Get 1:1 Help Now