在Ubuntu中安装PHP MSSQL驱动程序

如何在Ubuntu上安装PHP的MS SQL驱动程序。

在Ubuntu下直接不支持mssql。 有几个选项。

我相信你可以通过使用sybase模块来获得一些function。

PHP5,SYBASE

Package: php5-sybase Priority: optional Source: php5 Description: Sybase / MS SQL Server module for php5 This package provides a module for Sybase and Microsoft SQL Server database connections directly from PHP scripts. It also includes the pdo_dblib module for use with the PHP Data Object extension. 

另一种select是通过odbc访问服务器。 安装php5-odbc和tdsodbc。

属于PHP的mssql扩展只能在Windows上构buildPHP时才能使用。 http://www.php.net/manual/en/intro.mssql.php

还有另外一个支持PHP的驱动程序/扩展,但似乎只能在Windows上运行。 http://www.codeplex.com/SQLSRVPHP