简体   繁体   中英

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?

I cannot update the server version nor can I convert the database to MySQL.

I've managed to connect PHP 5.6 and SQL Server 2000. In Ubuntu, I used mssql functions and unixodbc drivers. In Windows, I used the SQL Server driver and odbc functions. And I could only use native PHP for it. (I tried with CI but it doesn't have the right config for it)

Here's the connection code for Windows:

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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