dsshsta97935 2013-02-06 03:18
浏览 17
已采纳

是否有令人信服的理由从php 5.3切换到5.2? [关闭]

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

  1. should I downgrade?
  2. 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 />";
  • 写回答

2条回答 默认 最新

  • douqun1977 2013-02-06 03:22
    关注

    You should check what has changed in 5.3. I would take the time to test to see if everything works fine with your application in 5.3 and if it does then you shouldn't downgrade. It's best to stay on the latest version if you can. If you insist on downgrading you can check this relevant post.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 HFSS 中的 H 场图与 MATLAB 中绘制的 B1 场 部分对应不上
  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?