mssql_connect no longer working as of PHP 5.3

前端 未结 2 1862
一整个雨季
一整个雨季 2020-12-21 05:31

I just received an email from our host and they\'ve upgraded our PHP to 5.3, unfortunately though, all the scripts have now broken. I traced it down to the function

相关标签:
2条回答
  • 2020-12-21 05:36

    http://www.php.net/manual/en/intro.mssql.php

    "This extension is not available anymore on Windows with PHP 5.3 or later."

    Maybe you should look into converting your app to use PDO: http://www.php.net/manual/en/ref.pdo-sqlsrv.php

    0 讨论(0)
  • 2020-12-21 05:43

    If you see such a warning, the first place to visit is the PHP documentation.

    From http://php.net/manual/en/intro.mssql.php:

    Introduction

    These functions allow you to access MS SQL Server database.

    This extension is not available anymore on Windows with PHP 5.3 or later.

    SQLSRV, an alternative driver for MS SQL is available from Microsoft: » http://msdn.microsoft.com/en-us/sqlserver/ff657782.aspx.

    0 讨论(0)
提交回复
热议问题