Command php not found in Windows

前端 未结 3 1688
眼角桃花
眼角桃花 2021-01-24 01:40

I have installed xampp server in windows 7. I have already checked Browser its working.But I am trying to run the php -v command prompt. I receive the following error message.

相关标签:
3条回答
  • 2021-01-24 01:51

    Add the php folder to your path and restart cmd.

    Use this command from the command line (use the path to the php.exe, it is usually under c:\xampp\php):

    set PATH=%PATH%;C:\xampp\php
    
    0 讨论(0)
  • 2021-01-24 02:04

    This pops up if Windows doesnt know about php. To solve this you have to add the full path to the php.exe to your PATH-variable in windows.

    After you restart the console php should be available.

    0 讨论(0)
  • 2021-01-24 02:09

    Add the full path to find the folder, for example: c:\xampp\php\php.exe -v or c:\xampp\php\php.exe -version

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