‘php.exe’ is not recognized as an internal or external command, operable program or batch file(“php.exe不是内部或外部命令、可运行程序或批处理文件)
问题描述
‘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"不是内部或外部命令、可运行程序或批处理文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:“php.exe"不是内部或外部命令、可运行程序或批处理文件


基础教程推荐
- php 7.4 在写入变量中的 Twig 问题 2022-01-01
- 使用 scandir() 在目录中查找文件夹 (PHP) 2022-01-01
- php中的foreach复选框POST 2021-01-01
- Web 服务器如何处理请求? 2021-01-01
- Yii2 - 在运行时设置邮件传输参数 2022-01-01
- PHPUnit 的 Selenium 2 文档到底在哪里? 2022-01-01
- 主题化 Drupal 7 的 Ubercart “/cart"页 2021-01-01
- php中的PDF导出 2022-01-01
- 如何在数学上评估像“2-1"这样的字符串?产生“1"? 2022-01-01
- 将变量从树枝传递给 js 2022-01-01