Executable path for PHP in VS Code

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Executable path for PHP in VS Code

Postby jayeyeare » 29. June 2021 08:57

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.
jayeyeare
 
Posts: 2
Joined: 29. June 2021 08:54
XAMPP version: 7.3.28
Operating System: Windows 10

Re: Executable path for PHP in VS Code

Postby Altrea » 29. June 2021 10:45

\xampp\php\php.exe
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11942
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64

Re: Executable path for PHP in VS Code

Postby jayeyeare » 02. July 2021 01:33

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.
jayeyeare
 
Posts: 2
Joined: 29. June 2021 08:54
XAMPP version: 7.3.28
Operating System: Windows 10

Re: Executable path for PHP in VS Code

Postby Altrea » 02. July 2021 05:28

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.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11942
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 154 guests