WampServer Version 25 bug modification

WBOY
Release: 2016-07-29 09:12:13
Original
914 people have browsed it

To do PHP development, you need to install the PHP operating environment. For convenience, many integrated environments can be downloaded online. Recently, I found some bugs using WampServer Version 2.5. I would like to share how to modify them. Experts please stop by.

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

You will find that the output time is different from the system time. Open php.ini, search for date, and modify the following code:

date.timezone = ASIA/ shanghai

  Save and restart Apache. (This is a little knowledge, not a BUG)

2. Open httpd.conf through the shortcut in the lower right corner, and you will find that this version of Apacheconfiguration file does not wrap automatically

Solution: Find the location of the Apacheconfiguration file directory, open the httpd.conf file in the EditPlus tool, then copy and paste it into the one without line breaks, and save it. Restart OK.

3. After clicking the directory on the localhost homepage, you will find that the jump path is wrong. Look at the link and find that localhost is missing

Solution: Open index.php in the www directory, search for suppress_localhost, and modify the found line of code to the following Code:

  $projectContents .= '

  • '.$file. '
  • ';

     Note (plus localhost/), OK.

    The above introduces the WampServer Version 25 bug modifications, including shortcuts and Apache content. I hope it will be helpful to friends who are interested in PHP tutorials.

    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 Tutorials
    More>
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template