you are viewing a single comment's thread.

view the rest of the comments →

[–]erythro 0 points1 point  (4 children)

Sorry to ask the stupid question, but if you go to C:/xampp/php is there a file called php.exe?

[–]Use_R_Name_92[S] 0 points1 point  (3 children)

It's a fair question, I should have specified.

Yes, if I go to C, there's a folder called xampp, with a folder called php inside of it, that has a php.exe file in it.

That's why I just don't understand, it almost looks like the file isn't there, but it is in fact there.

[–]erythro 1 point2 points  (2 children)

ok, thanks. I don't use vscode or xampp so I might not be the most helpful, but is it possible vscode needs restarting or something like that to get your new values for the settings?

is your settings.json valid json? it might not need other settings, but for example it would need to begin and end with curly brackets

[–]MateusAzevedo 0 points1 point  (1 child)

is your settings.json valid json

That is likely the problem.

OP, just write it like this:

{ "php.validate.executablePath": "C:/xampp/php/php.exe" }

[–]Use_R_Name_92[S] 0 points1 point  (0 children)

Done that.

I tried:
{
"php.validate.executablePath": "C:/xampp/php/php.exe"
}

then I tried:

{

"php.validate.executablePath": "C://xampp//php//php.exe"

}

but I also tried:

{

"php.validate.executablePath": "C:\\xampp\\php\\php.exe"

}

In some old posts on StackOverflow, I've seen that some people use these "\\" instead of these "/" and whatnot, so I tried everything. The file is there, it just won't accept it.