ms sqlsrv的驱动程序,用于将php 5.1连接到sql server 2005 [英] drivers for ms sqlsrv to connect php 5.1 to sql server 2005

查看:86
本文介绍了ms sqlsrv的驱动程序,用于将php 5.1连接到sql server 2005的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从php代码连接到sql服务器数据库.

操作系统:Win XP SP3
PHP版本5.1.0
数据库:SQL Server 2005
IIS 5.1版

建立连接需要哪些驱动程序?
我下载了php_sqlsrv_52_ts.dll并尝试使用它.它不起作用.我认为它适用于以上PHP 5.2 n.
我找不到用于5.1的ms sql srv驱动程序.
请Plz帮助我获取驱动程序以及将php 5.1连接到sql server 2005的可能方式和前提条件.
任何人都可以分辨出线程安全和非线程安全的PHP版本之间的区别.

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.

推荐答案

我知道这专门针对SQL 2008,但它也可能适用于SQL 2005. :

http://www.davidlauzon.net/2009/02/ms-sql -server-2008-with-php/ [ http://stackoverflow.com/questions/1623914/什么是线程安全或非线程安全PHP [
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[^]


这篇关于ms sqlsrv的驱动程序,用于将php 5.1连接到sql server 2005的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆