Hello everyone I'm trying run a simple echo " hello " to see if PHP works in VS code and i get the error.
" 'php' binary could not be either found or executed. Make sure PHP is installed, and add path to "php.executables" setting. "
and here is my settings.json
{
"workbench.colorTheme": "Default High Contrast",
"livePreview.notifyOnOpenLooseFile": false,
"php.validate.executablePath": "C:\\xampp\\php\\php.exe",
"security.workspace.trust.untrustedFiles": "open",
"php.executables": {
},
"editor.minimap.enabled": false
}
Any help is appreciated!
I have tried adding
"C:\\xampp\\php\\php.exe"
inside the
"php.executables": {
}
but i still get the same error.
i'm better that u have to download the last version of php like php-8.2.1 then you have to get the path of php C:\Program Files\php-8.2.1 like this then go to visual studio then settings.json and do this:
"php.executables": {
"v8.2.1": "C:\\Program Files\\php-8.2.1"
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With