Php is not available in visual studio code.

Asked 2 years ago, Updated 2 years ago, 69 views

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?

php vscode

2022-09-29 22:26

1 Answers

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)


2022-09-29 22:26

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.