‘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"不是内部或外部命令、可运行程序或批处理文件
基础教程推荐
- YouTube API v3 点赞视频,但计数器不增加 2022-01-01
- 在PHP中根据W3C规范Unicode 2022-01-01
- PHP PDO MySQL 查询 LIKE ->多个关键词 2021-01-01
- 如何在 Laravel 5.3 注册中添加动态下拉列表列? 2021-01-01
- 有什么方法可以用编码 UTF-8 而不是 Unicode 返回 PHP`json_encode`? 2021-01-01
- PHP 类:全局变量作为类中的属性 2021-01-01
- 如何在 Laravel 中使用 React Router? 2022-01-01
- Cron Jobs 调用带有变量的 PHP 脚本 2022-01-01
- 学说 dbal querybuilder 作为准备好的语句 2022-01-01
- 如何替换eregi() 2022-01-01
