vscode requires path to php set for this parameter:
"php.validate.executablePath":
so I specified this:
"/Applications/MAMP/bin/php/php7.0.12/bin/php"
but it isn't recognized.
What is the correct path ?
vscode requires path to php set for this parameter:
"php.validate.executablePath":
so I specified this:
"/Applications/MAMP/bin/php/php7.0.12/bin/php"
but it isn't recognized.
What is the correct path ?
I ran into this problem after installing the PHP Intellisense extension in vscode. For Intellisense to work I needed to point vscode at MAMP's version of PHP, not the default OS X version of PHP, but it did not recognise the path I was specifying.
I was able to resolve the issue by specifying the "php.executablePath"
preference instead of "php.validate.executablePath"
.
"php.executablePath": "/Applications/MAMP/bin/php/php7.4.21/bin/php"
Here is an explanation from the author of the package:
validate has nothing to do with this extension, but is the built-in validation of VS Code. I would disable that, because you will get duplicate validation. php.executablePath should be set to the path of the binary
I am using mac i have install php intellisense that required php version 7 executable path i have already php 7 installed. Terminal command
which php
work for me.