Рубрики
Uncategorized

Поддержка нескольких версий PHP-коммутатора под wampserver

Автор оригинала: David Wong.

First, you need to go to https://windows.php.net/download/ to find the version of PHP you want to download. Php7.1.32 as an example
View phpinfo() information according to the existing local wampserver environment
Three messages of vc14 x64 TS (short for thread safe) are obtained, so the PHP package you choose to download is as follows:
Download a compressed package:
Enter the installation directory of wampserver, and there are the following paths and files (the directories of version 5.6.25 and 7.0.10 of the webmaster's wampserver)
Create a new php7.1.31 directory and extract the compressed package to the 7.1.31 folder
Then go to php7.0.10 folder of wampserver and find the file wampserver.conf and copy it to php7.1.32 folder
Then find the file php.ini-development in the folder php7.1.32 and copy it in the current folder and rename it to phpForApache.ini
Finally, exit the wampserver, not to restart the service, but to exit the whole program and then open it again.
After wampserver is restarted, the PHP version is as follows

Оригинал: “https://developpaper.com/support-multi-version-php-switch-under-wampserver/”