Find PHP version on windows command line

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

    It is most likely that php is not in your specified path.

    Try to issue the php command with the full path, for example:

    C:\> "C:\Program Files\php\php.exe" -v

    Please note, that this is just an example, your php installation might be in a different directory.

提交回复
热议问题