Find PHP version on windows command line

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

    1. First open your cmd
    2. Then go to php folder directory, Suppose your php folder is in xampp folder on your c drive. Your command would then be:

      cd c:\xampp\php
      
    3. After that, check your version:

      php -v
      

    This should give the following output:

    PHP 7.2.0 (cli) (built: Nov 29 2017 00:17:00) ( ZTS MSVC15 (Visual C++ 2017) x86 ) Copyright (c) 1997-2017 The PHP Group Zend Engine v3.2.0, Copyright (c) 1998-2017 Zend Technologies

    I have uploaded a youtube video myself about checking the version of PHP via command prompt in Bangla: https://www.youtube.com/watch?v=zVkhD_tv9ck

提交回复
热议问题