1

I choose the 7.0.19 version since that what MAMP is using.

Here is how the settings for PHP looks like in Visual Studio Code right now:

{
"window.zoomLevel": 0,    
"php.validate.enable": true,
"php.validate.executablePath": "D:\\Software\\MAMP\\bin\\php\\php7.0.19.exe",
"php.validate.run": "onType",
"[php]": {         

}

}

And here is an error message:

Cannot validate since D:\Software\MAMP\bin\php\php7.0.19.exe is not a valid php executable. Use the setting 'php.validate.executablePath' to configure the PHP

Any ideas why it doesn't work?

1
  • I have the same problem. It refuses everything Commented Apr 12, 2018 at 22:55

1 Answer 1

1

You need to change "D:\Software\MAMP\bin\php\php7.0.19.exe"

to:

"D:/Software/MAMP/bin/php/php7.0.19.exe"

and it will work.

Sign up to request clarification or add additional context in comments.

1 Comment

Add this above all (with complete path to php exe): "php.executablePath": "path-to-your-php-exe", Example: "php.executablePath": "D:\\laragon\\bin\\php\\php-7.2.11-Win32-VC15-x64\\php.exe",

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.