Solved

Runing PHP with mssql, unable to load dynamic libraries

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
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 count occurrences of each item in an array.

790 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