简体   繁体   English

VSCode找不到php可执行文件

[英]VSCode cannot find php executable

I orginally did not have php installed when I got vs code. 当我得到vs代码时,我原本没有安装php。 Therefore I installed the PHP IntelliSense extension and installed PHP. 因此,我安装了PHP IntelliSense扩展并安装了PHP。 VS Code could still not locate PHP so I realized I had to change the php.validate.executablePath in VS Code. VS Code仍然找不到PHP,因此我意识到我必须在VS Code中更改php.validate.executablePath。 Which I did and I changed it to the php.exe location. 我做了,然后将其更改为php.exe位置。 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. 该文件路径在VSCode中是正确的,但仍然无法正常工作。 Assistance would be appreciated... see screen shot. 希望能提供帮助...请参阅屏幕截图。

Img of VSCode and File Explorer VSCode和文件资源管理器的图像

I made a silly mistake... I just had to add the same exact extention to the php.executablePath and now it works perfectly fine. 我犯了一个愚蠢的错误……我只需要向php.executablePath添加相同的扩展名,现在它就可以正常工作了。 See screenshot... 查看截图...

Resolution Picture 分辨率图片

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM