问题描述
‘php.exe’未被识别为内部或外部命令,可运行的程序或批处理文件.
为什么即使我已将 PHP 添加到我的环境变量中,仍会出现该错误?
Why does that error occur even though I've added PHP to my environment variables?
我的环境变量PATH如下图所示:
My environment variable PATH is shown below:
C:Program FilesNVIDIA CorporationPhysXCommon;C:ProgramFilesCommon FilesMicrosoft SharedWindows Live;C:Program FilesPC…………………………………………………………………………文件QTSystem;A:xamppphpphp.exe
我使用的是 Windows 7.
I'm using Windows 7.
推荐答案
我觉得你需要把它改成 A:xamppphp 并留在那里,然后它会在目录中搜索文件,还有:你试过只调用 php 而不是 php.exe 并检查目录是否正确.
I think you need to change it to A:xamppphp and just leave it there, then it will search the directory for the file, also: have you tried calling just php instead of php.exe and check that the directory is correct.
这篇关于“php.exe"不是内部或外部命令、可运行程序或批处理文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!