Click here to Skip to main content
15,892,797 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to connect to sql server database from php code.

OS: Win xp SP3
PHP ver 5.1.0
Database : SQL server 2005
IIS ver 5.1

What are the drivers needed for the connection to happen?
I downloaded the php_sqlsrv_52_ts.dll and tried with it. It doesn't work.I think its for PHP 5.2 n above.
I am not able find the ms sql srv driver for 5.1.
Plz help me out in getting the drivers and possible ways and prerequisites to connect php 5.1 to sql server 2005.
Also can anyone tell the difference between thread safe and non thread safe PHP versions.
Posted

1 solution

I know this specifically refers to SQL 2008, but it might also work for SQL 2005:

http://www.davidlauzon.net/2009/02/ms-sql-server-2008-with-php/[^]

As for your question about thread safety in php, here is a great response on Stack Overflow:

http://stackoverflow.com/questions/1623914/what-is-thread-safe-or-non-thread-safe-in-php[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900