How do I convert all my mssql_ functions to sqlsrv_ after upgrading from php 5.2 to 5.4
Posted on 2014-11-14
I have just had to upgrade my server following a hard disk failure. The window 2008 server used to run a number of PHP 5.2 applications with a MSSQL 2008 database very happily.
My new server has arrived with PHP 5.4 or 5.5, and SQL Server 2012 and none of my scripts work anymore because the mssql_connect/mssql_query etc functions are no longer supported wince PHP 5.3
Does this mean that I have to entirely re-write my applications with sqlsrv_connect/sqlsrv_query etc?
Surely this cannot be possible!
I have tried to download a copy of PHP 5.2, but before I pursue this path, can anyone suggest how I can update all my code, literally tens of thousands of lines, to work with the mssql_connect etc library.