PHP executable not found. Install PHP 7 and add it to your PATH or set the php.executablePath setting

后端 未结 7 2063
没有蜡笔的小新
没有蜡笔的小新 2020-12-24 05:34

I\'m running windows 10 fresh copy and I just installed visual studio code. I was trying to develop a PHP project using VS Code. But I\'m having trouble in setting up the en

7条回答
  •  萌比男神i
    2020-12-24 06:07

    You installed PHP IntelliSense extension, and this error because of it.
    So if you want to fix this problem go to this menu:
    File -> Preferences -> Settings
    Now you can see 2 window. In the right window add below codes:

    {
        "php.validate.executablePath": "C:\\wamp64\\bin\\php\\php7.0.4\\php.exe",
        "php.executablePath": "C:\\wamp64\\bin\\php\\php7.0.4\\php.exe"
    }
    

    Just like below image.



    NOTICE: This address C:\\wamp64\\bin\\php\\php7.0.4\\php.exe is my php7.exe file address. Replace this address with own php7.exe.

提交回复
热议问题