PHP 5.5 and MS SQL Server

Hello folks,

  I am using PHP 5.5 and the database will be MS Sql Server 2008. I am in a Windows environment using IIS 8 Express.
My question concerns that I see there are two flavors of how the commands are constructed.
one precedes the command with mssql_ and the second (PDO) uses sqlsrv_
Excuse my stupidity, but I need to use the mssql version which constructs it commands in the following manner:

mssql_connect(DB_HOST, DB_USER, DB_PASSWORD, DB_NAME); 

Open in new window


In my php.in file, under extensions, what drivers do I load?
This is what is loaded - I am thinking I need to comment out the line for php_pdo_sqlsrv_55.nts.dll
and just have the line: extension=php_sqlsrv_55_nts.dll
extension=php_sqlsrv_55_nts.dll
extension=php_pdo_sqlsrv_55.nts.dll

Open in new window


Any help is appreciated..
OverthereAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Dave BaldwinFixer of ProblemsCommented:
PHP 5.5 on Windows Requires the 'sqlsrv' driver and will Not run the 'mssql' driver.  I believe you have the correct drivers loaded in your 'php.ini'.  If you have old code that uses the 'mssql' driver, you will have to rewrite it to use the 'sqlsrv' driver.  Here is the main page for the 'sqlsrv' driver:  http://php.net/manual/en/book.sqlsrv.php
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
OverthereAuthor Commented:
I have to laugh at myself! I gotta thinking abut what I read about 5 times, (from same link) -
php 5 -*REQUIRES *  sqlsrv drivers. I can be dumber as a box of rocks!
And I just log-in in to delete my question and viola!! There you are !!
I thank you for responding and confirming what I thought after posting.
I appreciate it!
 Extracting data like a breeze! :)
But I am sure something will pop up soon!! :)
thank you again..
0
Dave BaldwinFixer of ProblemsCommented:
You're welcome, glad to help.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.