I orginally did not have php installed when I got vs code. Therefore I installed the PHP IntelliSense extension and installed PHP. VS Code could still not locate PHP so I realized I had to change the php.validate.executablePath in VS Code. Which I did and I changed it to the php.exe location. However it still does not work. Can someone please give me some insight as to why or a resolution. The file path is correct in VSCode but still does not work. Assistance would be appreciated... see screen shot.
Asked
Active
Viewed 2,343 times
1 Answers
1
I made a silly mistake... I just had to add the same exact extention to the php.executablePath and now it works perfectly fine. See screenshot...

Fletchy
- 311
- 1
- 4
- 18
-
As the message box in the first screenshot suggest you to fix the problem. – axiac Apr 22 '18 at 17:44
-
@axiac not sure what you mean. – Fletchy Jun 12 '18 at 15:52
-
In the image you attached to the question, VSCode clearly tells you in the notification window to set `php.executablePath` with the path of the PHP interpreter. The answer is in the question. – axiac Jun 12 '18 at 15:57
-
1Yes, I saw that, as mentioned in the answer above. Just clarifying that the resolution was found. :) – Fletchy Jun 12 '18 at 20:28