0

I want command php -v to point to my newest version of PHP. How to do that?

1 Answer 1

1

You need to change enviroment variables to point to the newest version. Open up Control Panel, then navigate to System. From the left menu select the "Advanced system settings". In the new window navigate to "Advanced" and on the bottom click "Enviroment Variables". Find the PATH variable in there, and click edit. Now you want to find the php location in there and change the folder to point to the newer version.

Sign up to request clarification or add additional context in comments.

1 Comment

Working. (But I wonder why it showed, lets say middle, 7.0.4 version if they had to choose 3 versions and enviroment path didn't had any php path till now.)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.