Find PHP version on windows command line

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

    Step 1 : Open CMD Step 2 : Go to C:/xampp/php or htdocs path:/
    step 3 : Type "php -v " Result php version

    0 讨论(0)
  • 2020-12-24 01:03

    Go to c drive and run the command as below

    C:\xampp\php>php -v

    0 讨论(0)
  • 2020-12-24 01:04

    Easy Method is: Just copy the file cmd.exe from c:/windows/system32/ and paste it to C:\xampp\php\ and run it, when the cmd opens type " php -v " without quotes and hit enter... you will get your php version.. thank you

    0 讨论(0)
提交回复
热议问题