dongxia19772008 2019-05-03 11:45
浏览 402

将新版本的PHP添加到XAMPP而不是升级到更新版本的PHP

In my development environment, on Windows, I'm running XAMPP with PHP 5.4.4. All of the projects in my htdocs folder are compatible with PHP 5.4.4. Presently, only one of these projects needs to be refactored to work on PHP 7.3.4.

This post describes how to upgrade to a newer version of PHP; however, I don't want to replace the 5.4.4 version that's already installed. Instead, I want to add the 7.3.4 version so it's possible to choose which PHP version to run for each project.

This post describes how to install an older version of PHP alongside a newer version and how to run multiple versions of PHP on a single installation of XAMPP. This is closer to what I want to achieve. Instead of installing an older PHP version, I'd be installing a newer one. Are there any reasons that the base PHP version that's installed should be the newest version?

Edit: I would like to set up my environment so the different PHP versions run on different ports, as described by the second post listed above. In other words, I don't want to modify Apache's httpd.config file each time the PHP version is to be switched.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 stm32f103c8t6采集HLK-LD2450毫米波雷达传感器数据并打印显示距离和角度
    • ¥15 不重复生成字母+数字交易号
    • ¥15 AD封装导入后层混乱了
    • ¥15 如何将excel中的数据导入ansys中
    • ¥15 MATLAB中图像问题
    • ¥15 rk3399 安卓7.1 应用音频无声音
    • ¥20 Chatgpt被封号以后,换用apple和gmail注册失败,直接跳转封号界面
    • ¥15 这几个有点疑问解答一下
    • ¥15 r语言如何绘制这样的降水地图
    • ¥15 服务器一块硬盘重启过程中安装后,硬盘不识别了怎么修复?