php 如何在wamp中升级php版本?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/10292552/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to upgrade php version in wamp?
提问by Dhinesh.B
Currently I'm using php version 5.1.6 in wamp server. I'm trying to use phpexcel library to read .xls and .xlsx files. Phpexcel library minimum requirement is php version 5.2.0. So how can i solve this issue or how to upgrade php version.
目前我在 wamp 服务器中使用 php 版本 5.1.6。我正在尝试使用 phpexcel 库来读取 .xls 和 .xlsx 文件。phpexcel 库的最低要求是 php 版本 5.2.0。那么我该如何解决这个问题或如何升级 php 版本。
Thanks in advance.
提前致谢。
回答by j0k
Here is all php add-on. Select the one you need and download/install it.
这是所有 php 插件。选择您需要的一个并下载/安装它。
回答by j0k
you have to upgrade your entire wamp:
你必须升级你的整个 wamp:
backup your database.
备份你的数据库。
backup your code
备份你的代码
uninstall wamp
卸载 wamp
install new wamp
安装新的 wamp
test that local host works
测试本地主机是否工作
restore your database ( first change max_allowed_packet in mysql.ini to 10M)
恢复你的数据库(首先将mysql.ini中的max_allowed_packet改成10M)
enable rewrite module in apache
在 apache 中启用重写模块

