How to setting php.validate.executablePath?
How to setting php.validate.executablePath?
If the php executable is not on your path you can use the setting to point to the php executable. For example
php.validate.executablePath="C:\\apps\\php\\php.exe"
@dbaeumer Thank you!
Not Working

I am sorry the file ext was wrong
What another settings do I need to debug php code?
There is currently no out of the box support to debug PHP. You might want to look if an extension is available.
thanks!
Try that: php.validate.executablePath="C:/apps/php/php.exe"
How would I achieve this on my Mac running Mamp?
I'm trying "php.validate.executablePath": "~/Applications/MAMP/bin/php/php7.0.12/bin"

It doesn't work for me.
hi, open file setting.json { "php.validate.executablePath": "C:\xampp\php\php.exe", "php.executablePath": "C:\php7.1\php.exe" } :)
on mac,add setting to setton.json: "php.validate.executablePath": "/usr/local/php5-7.1.4-20170506-100436/bin/php"
@only1shirish super helpful, I couldn't make sense of anything anyone was saying.
I have tried everything on here but it is still not debugging or running or doing anything really
@Nathan-Hanlon which OS are you on?
Windows 10
Get Outlook for Androidhttps://aka.ms/ghei36
From: Dirk Bäumer [email protected] Sent: Thursday, July 6, 2017 3:22:03 PM To: Microsoft/vscode Cc: Nathan Hanlon; Mention Subject: Re: [Microsoft/vscode] How to setting php.validate.executablePath? (#533)
@Nathan-Hanlonhttps://github.com/nathan-hanlon which OS are you on?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/Microsoft/vscode/issues/533#issuecomment-313410556, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AcedpqPJnA9vMioCPl0ZmO31J6fd7G0uks5sLO2LgaJpZM4GoKjv.
I went to my workspace settings and typed php.validate.executablePath: "c://Users/User01/data/php.exe" but its not working even then.
I've tried a few paths for PHP binaries on OS X, none of them seem to work. Visual Studio is finding PHP 5.6 somewhere on my computer and it's sticking to it, regardless of my settings.
The error I get is "The language server needs at least PHP 7 installed. Version found: 5.6.30".
Here are the different paths I've tried to give it:
"php.validate.executablePath": "/Applications/MAMP/bin/php/php7.1.1/bin/php",
"php.validate.executablePath": "/Applications/MAMP/bin/php/php7.1.1/bin/",
"php.validate.executablePath": "/usr/local/Cellar/php71/7.1.0_11/bin/",
"php.validate.executablePath": "/usr/local/Cellar/php71/7.1.0_11/bin/php",
Atom uses MAMP's php binary just fine. Visual Studio Code ain't having it. ¯_(ツ)_/¯

is not working for me ... sorry !!!
trying to set mine