Find PHP version on windows command line

后端 未结 15 1694
天涯浪人
天涯浪人 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:42

    You just need to find out where is your PHP folder.

    • If you are using XAMPP or WAMP then you will see a php folder.
    • You just need to go into the php folder using your cmd using command

    cd \xampp\php (FOR XAMPP)

    cd \wamp\php (FOR WAMP)

    • And then just type in this command

    php -v

    • Then you will see something like

    PHP 5.6.11 (cli) (built: Jul 9 2015 20:55:40) Copyright (c) 1997-2015 The PHP Group Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies

提交回复
热议问题