Solved

PHP on IIS7 + MS SQL

Posted on 2010-08-18
4
857 Views
Last Modified: 2013-12-13
i have setup PHP to run on IIS with no issues, but am now trying to connect to MS SQL 2005 and am having issues, i have tried several different code samples and just get a blank page, I ran PHP from C:\PHP in a command prompt and got the below 2 errors, which i am guessing is part of the problem, just not sure how to fix - what do i need to do?

c:\PHP>php
PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\php5\php_mssql.dll
' - The specified module could not be found.
 in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\php5\php_wincache.
dll' - The specified module could not be found.
 in Unknown on line 0
0
Comment
Question by:dkilby
[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
  • 2
  • 2
4 Comments
 
LVL 8

Expert Comment

by:Jessie Gill, CISSP
ID: 33470707
It looks like you are missing the DLL files

you should have a folder called ext in your PHP root directory.  This is where teh above dll's need to be.  Once they are copied restart IIS.
0
 

Author Comment

by:dkilby
ID: 33470725
Inside the php folder there is a 'ext' folder and inside i can see php_mysql.dll and php_mysqli.dll, cant see the php_wincache, will try and find it, but the sql one i can see
0
 

Author Comment

by:dkilby
ID: 33470728
ok just realized what i was reading as MS is actually MY SQL - where can i get php_mssql.dll from?
0
 
LVL 8

Accepted Solution

by:
Jessie Gill, CISSP earned 500 total points
ID: 33470827
I acually got mine from version 5.2.14 , You could take teh DLL from taht and give it a try.  You are probably using 5.3

here is a link that may help

http://php.net/manual/en/install.windows.extensions.php
0

Featured Post

Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

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…
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

691 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