Find PHP version on windows command line

后端 未结 15 1796
天涯浪人
天涯浪人 2020-12-24 00:35

I just tried to know version of my PHP from windows command typing, C:\\> php -v But it is not working. It says php is not recognized as internal or ex

15条回答
  •  青春惊慌失措
    2020-12-24 00:37

    Nothing to worry it's easy

    If you are using any local server like Wamp, Xampp then Go to this Steps

    1. Go to your drive
    2. Check xampp or wamp server that you installed
    3. Inside that check php, if you got then go for next step
    4. You will find php.exe, Once you get php.exe then you are done. Just type the path like below, here i am using XAMPP and type v for checking version and you are done.

      C:>"C:\xampp\php\php.exe" -v

    Thanks.

提交回复
热议问题