简体   繁体   中英

how to get the php-cli version 7 in cmd prompt

I installed one Xampp with Php5 version and other xmapp with php7 version in different folders, but db is same for both xmapps. When I run the

php -v

in command prompt in both folders, it only show as php version as 5. How to fix it?

Thanks in advance.

Changed the environment value in system for php.exe (set the php7 path to env). eg:

Old path: D:xmapp/php/php.exe

new path: D:xmapp7/php/php.exe

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM