I created a php file with visual studio code and it says PHP executable not found.Install PHP7 and add to your PATH or set the php.executablePath setting
.
Building a PHP Development Environment Using Visual Studio Code (Windows, Mac)
When I was doing the configuration as per this site, I failed in the Path configuration.
In other words, you cannot enter Path in "php.validate.enable": true,
.
What should I do?
The settings on the referenced page are for PHP grammar checks and code completion to be invoked from Visual Studio Code.
Visual Studio Code is just a source code editor, so you need PHP running environment to configure PATH (=actually allow PHP to run).
(You don't need PHP if you're just writing code)
© 2024 OneMinuteCode. All rights reserved.