My boss created an application in php 5.2 on some older server. The application writes and reads data from a sql server 2012 database.
We now have a brand spankin new windows server 2012 with iis 8 on it.
My job is to migrate the application from the old server to the new server.
I've already installed php 5.3 not knowing that we need 5.2
Question
- should I downgrade?
- if so, how do i downgrade? the process of installing 5.3 is easy, but 5.2 is going to be a nightmare.
example this will only work in versions 5.3+:
$serverName = '(localdb)\v11.0';
$connOptions = array('AttachDBFileName'=>'C:\Users\bswan\ExampleDB.mdf','Database'=>'ExampleDB');
$conn = sqlsrv_connect($serverName, $connOptions);
if($conn === false)
die(print_r(sqlsrv_errors(), true));
else
echo "Connected via sqlsrv!<br />";