简体   繁体   English

PHP 5.6和SQL Server 2000

[英]PHP 5.6 and SQL Server 2000

Is it possible to integrate PHP 5.6 to SQL Server 2000 Or should I downgrade to PHP 4.x to do this? 是否可以将PHP 5.6集成到SQL Server 2000中,还是应该降级到PHP 4.x来做到这一点?

I cannot update the server version nor can I convert the database to MySQL. 我无法更新服务器版本,也无法将数据库转换为MySQL。

I've managed to connect PHP 5.6 and SQL Server 2000. In Ubuntu, I used mssql functions and unixodbc drivers. 我已经设法连接PHP 5.6和SQL Server2000。在Ubuntu中,我使用了mssql函数和unixodbc驱动程序。 In Windows, I used the SQL Server driver and odbc functions. 在Windows中,我使用了SQL Server驱动程序和odbc函数。 And I could only use native PHP for it. 而且我只能使用本机PHP。 (I tried with CI but it doesn't have the right config for it) (我尝试使用CI,但是它没有正确的配置)

Here's the connection code for Windows: 这是Windows的连接代码:

$conn = odbc_connect("Driver={SQL Server};Server=".$server.";Database=".$database.";", $user, $password);

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM