gpt4 book ai didi

php - VSCode : PHP executable not found even after setting env variable and pointing vscode to php. exe

转载 作者:行者123 更新时间:2023-12-01 19:22:20 25 4
gpt4 key购买 nike

我安装了PHP Intellisense扩展名并按照说明将 VSCode 指向我的 php 文件,我还设置了环境; Windows 中的变量指向 php 目录。

当我打开 VSCode 时,出现以下错误:

PHP executable not found. You need PHP 7 installed and in your PATH

VSCode 设置:

enter image description here

环境变量:

enter image description here

我怎样才能让它发挥作用?

我引用过:

最佳答案

您需要单击“路径”并在系统变量列表中突出显示它,然后单击“编辑”按钮。将打开一个新窗口,其中包含环境变量中的路径列表。单击右上角的“新建”按钮,然后在其中键入或粘贴复制的 PHP.exe 路径。那么它应该可以工作。

关于php - VSCode : PHP executable not found even after setting env variable and pointing vscode to php. exe,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43241354/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com