Home > php教程 > php手册 > body text

WampServer Version 2.5 bug修改,wampserverversion

WBOY
Release: 2016-06-13 08:51:40
Original
1111 people have browsed it

WampServer Version 2.5 bug修改,wampserverversion

做PHP开发都需要安装PHP的运行环境,为了方便,网上可以下载到好多的集成环境,最近使用WampServer Version 2.5发现有一些bug,分享一下修改的方法。高手请路过。

1、echo date('Y-m-d H:i:s');

  会发现输出的时间和系统时间不一样,打开php.ini,搜索date,修改如下代码:

  date.timezone = ASIA/shanghai

  保存,重启Apache。(这是小知识,不是BUG)

2、通过右下角快捷方式打开httpd.conf,会发现这个版本的Apache配置文件不自动换行

  解决方法:找到Apache配置文件所在目录,将httpd.conf文件放在EditPlus工具中打开,然后复制后粘贴到没有换行的那个里面,保存。重启OK。

3、localhost首页点击目录后会发现跳转的路径不对,看一下链接,发现缺少localhost

  解决方法:打开www目录下的index.php,搜索suppress_localhost,把找到的那行代码修改成如下代码:

  $projectContents .= '

  • '.$file.'
  • ';

      注(加上localhost/) ,OK。

     

    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
    Popular Recommendations
    Popular Tutorials
    More>
    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!