user3189734
user3189734

Reputation: 665

How to configure Command line to use the newest PHP version?

In command line, if I php-v it returns PHP 5.3.13 however I have updated wamp to 5.4.0

I'm sure this is simple but how do I force command line to use the newest version of PHP

Upvotes: 0

Views: 96

Answers (3)

rvandoni
rvandoni

Reputation: 3397

If you're using windows, check in your system PATH if you have the old version linked. Remove it and add the new one

Upvotes: 1

Flosculus
Flosculus

Reputation: 6946

How Windows responds to commands depends on your environmental variables. Check the directory given to where the PHP executable is. Different version, different executable.

Upvotes: 3

Rwd
Rwd

Reputation: 35180

You need to put the directory that has php.exe in you WAMP installation into your PATH. It is usually something like C:\wamp\xampp\php

Upvotes: 2

Related Questions