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 .= '
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.