Adapter for legacy code (which uses mssql_ * functions) to work with the php_sqlsrv driver
- Get official Microsoft Drivers for PHP for SQL Server or (recommended) unofficial but easy to use (description here)
- add extension in php.ini (ex. extension=php_sqlsrv_54_ts_unofficial.dll)
- include sqlsrv-adapter.php before your legacy code (use auto_prepend_file = /path/to/sqlsrv-adapter.php for transparent migration)
- profit!
- query which affected more than one resultsets without NOCOUNT option always return false (add SET NOCOUNT ON in your querys)
- init/bind/execute functions not implemented (use mssql_query)