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

后端 未结 7 2064
没有蜡笔的小新
没有蜡笔的小新 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条回答
  •  借酒劲吻你
    2020-12-24 06:03

    For me this setting was working.
    In my windows 8.1 the path for php7 is

    C:\user\test\tools\php7\php.exe

    settings.json

     {  
     "php.executablePath":"/user/test/tools/php7/php.exe",
     "php.validate.executablePath": "/user/test/tools/php7/php.exe"
     }
    

    see also https://github.com/microsoft/vscode/issues/533

提交回复
热议问题