在wamp集成环境下升级php版本(实现方法)_php技巧

WBOY
Release: 2016-05-17 08:57:34
Original
1822 people have browsed it
wamp集成环境下升级php版本
1.下载php版本压缩包,解压php版本压缩包
2.停掉wamp服务
3.替换wamp\php文件
4.替换wamp\Apache2\bin目录下的php5nsapi.dll 和 php5ts.dll(对应当前php版本的)
5.重启wamp服务
6.phpinfo()测试

我遇到的问题 时区设置问题
解决方案:
wamp\Apache2\bin\php.ini

; Module Settings ;

;新增时区设置
[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = UTC
;新增时区设置

注意事项
php版本升级时
因为我们替换的是php目录
php/php.ini文件中的一些路径不一定和现在wamp的路径匹配。
需要修改
搜索d:
查出一些路径然后修改以匹配现在wamp路径
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!