Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error spawning PHP: Command failed with exit code 1: C://xampp//phpClass/php.exe --version The system cannot find the path specified. #79

Open
Denilson15 opened this issue Jun 20, 2024 · 1 comment

Comments

@Denilson15
Copy link

Using VS Code and it doesn't let me use PHP for my class, ive already set up the Path on control panel and its not working. How do I fix this, im new to programming.

@zobo
Copy link
Owner

zobo commented Jun 21, 2024

The vscode extension vscode-php-intellisense is looking for your php.exe so it can run the language services. It tries to look for it in the following config keys - first wins:

  • php.executablePath
  • php.validate.executablePath
    Then falls back to php.exe or php

If you are on windows, find where your php.exe is installed and try to configure php.executablePath with the proper value. The current value is probably C://xampp//phpClass/php.exe. If the path is correct the value should be C:\xampp\phpClass\php.exe or maybe C:\\xampp\\phpClass\\php.exe depending on the context you are editing it in.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants