Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Runing PHP with mssql, unable to load dynamic libraries

Posted on 2004-04-26
1
Medium Priority
?
743 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 1000 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: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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

Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
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.
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 …
Suggested Courses

730 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