Find PHP version on windows command line

后端 未结 15 1764
天涯浪人
天涯浪人 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 01:00

    This how I check php version

    PS C:\Windows\system32> php -version

    Result:

    PHP 7.2.7 (cli) (built: Jun 19 2018 23:44:15) ( NTS MSVC15 (Visual C++ 2017) x86 )
    Copyright (c) 1997-2018 The PHP Group
    Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
    

    PS C:\Windows\system32>

提交回复
热议问题