Solved

Runing PHP with mssql, unable to load dynamic libraries

Posted on 2004-04-26
1
731 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
[X]
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
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

Technology Partners: 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!

Question has a verified solution.

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

Generating table dynamically is the most common issue faced by php developers.... So it seems there is a need of an article that explains the basic concept of generating tables dynamically. It just requires a basic knowledge of html and little maths…
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…
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.

728 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