How to find php version in windows
Collectives on Stack Overflow. Learn more. Asked 4 years, 2 months ago. Active 5 months ago. Viewed k times. The composer installed uses PHP 5. How can I use PHP7 without reinstalling the composer again? Improve this question. Jie Jie 1, 3 3 gold badges 21 21 silver badges 55 55 bronze badges.
Why is there not a single linux answer? Add a comment. Active Oldest Votes. You can change php version of composer without uninstalling it, follow these steps : Search for system environment variables in cortana. Click on the button "Environment variables". Replace php5. You are done.
To verify, first close all the cmd windows, than open cmd and type php -v , press enter and you should see php7. If you don't see change in php version than just restart your pc and run php -v again in cmd , it will work. Improve this answer.
If wamp server shows error about change detection in environment variables I suggest you to restart server. If it does not solve than shutoff server and than start it again. If that also does not work than I suggest you to restart your pc. Hope it helps : — geeky. Regarding step 3, for me it was under "User variables" not "System variables".
Find centralized, trusted content and collaborate around the technologies you use most. Connect and share knowledge within a single location that is structured and easy to search. It says php is not recognized as internal or external command. After this run. Step 9 - Click New and then click Browse , then in the next panel which will open you need to select the folder you want in the Path.
Note : Replace your PHP installed path e. PHP 5. Then go to php folder directory, Suppose your php folder is in xampp folder on your c drive. Your command would then be:. PHP 7. Please note, that this is just an example, your php installation might be in a different directory.
Click Start Menu button 2. A black window terminal will appear, this is known as a Command Line Interpreter 3. In the Terminal Window Application Type cd c: and press enter 4. Now type php -v and press enter. Easy Method is: Just copy the file cmd. For me, the PHP path traversed from php5. You will find php. Just type the path like below, here i am using XAMPP and type v for checking version and you are done. If the xampp is installed in your c drive then try the below commonds first open cmd and then type.
Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? An expert in iOS software design and development, she specializes in building technical hybrid platforms.
Learn about our Editorial Process. Featured Video. Cite this Article Format. Bradley, Angela. Common File Types and File Extensions. Delivering Sites and Project Files to Clients. Your Privacy Rights. To change or withdraw your consent choices for ThoughtCo. At any time, you can update your settings through the "EU Privacy" link at the bottom of any page. These choices will be signaled globally to our partners and will not affect browsing data. We and our partners process data to: Actively scan device characteristics for identification.
0コメント