问题描述
‘php.exe’未被识别为内部或外部命令,可运行的程序或批处理文件.
‘php.exe’ is not recognized as an internal or external command, operable program or batch file.
为什么即使我已将 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
C:Program FilesNVIDIA CorporationPhysXCommon;C:Program FilesCommon FilesMicrosoft SharedWindows Live;C:Program FilesPC ............... FilesQTSystem;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"不是内部或外部命令、可运行程序或批处理文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!



大气响应式网络建站服务公司织梦模板
高端大气html5设计公司网站源码
织梦dede网页模板下载素材销售下载站平台(带会员中心带筛选)
财税代理公司注册代理记账网站织梦模板(带手机端)
成人高考自考在职研究生教育机构网站源码(带手机端)
高端HTML5响应式企业集团通用类网站织梦模板(自适应手机端)