Page 1 of 1

Executable path for PHP in VS Code

PostPosted: 29. June 2021 08:57
by jayeyeare
I am trying to set my executable path for PHP in VS Code, but cannot find the php.exe file to do so. Any help would be very much appreciated.

Re: Executable path for PHP in VS Code

PostPosted: 29. June 2021 10:45
by Altrea
\xampp\php\php.exe

Re: Executable path for PHP in VS Code

PostPosted: 02. July 2021 01:33
by jayeyeare
Altrea wrote:\xampp\php\php.exe
I have tried this and it comes back with "invalid character in string" (referring to the \). I do not have the php.exe file anywhere it did not come with my download.

Re: Executable path for PHP in VS Code

PostPosted: 02. July 2021 05:28
by Altrea
the

jayeyeare wrote:I have tried this and it comes back with "invalid character in string" (referring to the \).

the backslash is the primary directory separator character on windows, but you can also use the forward slash /
more likely vs code does not like the path started with a directory separator without any drive letter. I do not know on which drive letter and folder your xampp is installed,so you need to adjust the path relating to your xampp install path

jayeyeare wrote:I do not have the php.exe file anywhere it did not come with my download.

every XAMPP for Windows version ships a php.exe.