Skip to main content
Post Closed as "Not suitable for this site" by Alexei Levenkov, rozsazoltan, Fedor
added 63 characters in body
Source Link
hakre
  • 199.8k
  • 55
  • 454
  • 865

I installed the PHP Server extension for VS Code and added two lines to settings.json:

"php.validate.executablePath": "С://php-server//php.exe",
"phpserver.phpPath": "С://php-server//php.exe"

I inserted these lines before
  the closing bracket ("}") and added a comma on the previous to last line.
I

I restarted VS Code and got the message: Unable to validate because h:\web\php\с:\php-server\php.exe is not a valid PHP executable. Use the php.validate.executablePath parameter to configure the PHP executable.
No

Unable to validate because h:\web\php\с:\php-server\php.exe is not a valid PHP executable. Use the php.validate.executablePath parameter to configure the PHP executable.

No matter howwhat I tried, it still looks for hphp.exe on the disk with the device letter "h".

I installed the PHP Server extension for VS Code and added two lines to settings.json:

"php.validate.executablePath": "С://php-server//php.exe",
"phpserver.phpPath": "С://php-server//php.exe"

I inserted these lines before
 } and added a comma on the previous last line.
I restarted VS Code and got the message: Unable to validate because h:\web\php\с:\php-server\php.exe is not a valid PHP executable. Use the php.validate.executablePath parameter to configure the PHP executable.
No matter how I tried, it still looks for h on the disk.

I installed the PHP Server extension for VS Code and added two lines to settings.json:

"php.validate.executablePath": "С://php-server//php.exe",
"phpserver.phpPath": "С://php-server//php.exe"

I inserted these lines before the closing bracket ("}") and added a comma on the previous to last line.

I restarted VS Code and got the message:

Unable to validate because h:\web\php\с:\php-server\php.exe is not a valid PHP executable. Use the php.validate.executablePath parameter to configure the PHP executable.

No matter what I tried, it still looks for php.exe on the disk with the device letter "h".

Source Link

VS code treats the address C://php.exe as h:/web/c:/php.exe

I installed the PHP Server extension for VS Code and added two lines to settings.json:

"php.validate.executablePath": "С://php-server//php.exe",
"phpserver.phpPath": "С://php-server//php.exe"

I inserted these lines before
} and added a comma on the previous last line.
I restarted VS Code and got the message: Unable to validate because h:\web\php\с:\php-server\php.exe is not a valid PHP executable. Use the php.validate.executablePath parameter to configure the PHP executable.
No matter how I tried, it still looks for h on the disk.