从PHP5.5访问MS SQL

从PHP5.5访问MS SQL,php,sql-server,linux,ubuntu,Php,Sql Server,Linux,Ubuntu,我正在使用Php连接SQL server,使用以下代码: $dbhandle = mssql_connect($server,$username,$password); or die("Could not connect to SQL server"); $selected = mssql_select_db($database,$dbcon) or die("Could not open database $database"); 但是,我发现代码没有运行。没有错误消息,

我正在使用Php连接SQL server,使用以下代码:

$dbhandle = mssql_connect($server,$username,$password);
     or die("Could not connect to SQL server");
$selected = mssql_select_db($database,$dbcon)
     or die("Could not open database $database");
但是,我发现代码没有运行。没有错误消息,无法使用此命令执行任何mssql_查询()

经过一些研究,我发现mssql并不像mysql那样被PHP5.5默认支持。但是,我没有找到sulotion

我从微软找到了这个,但它们是针对Windows上的Php的。我找不到适用于Linux的

在Ubuntu中安装PHP5.5的SQL驱动程序应该怎么做

我的服务器
Ubuntu上的PHP 5.5.9

Microsoft server 2012R2上的SQL server 2012是连接到MSSQL server数据库的参考

它在我的电脑上工作