沃梦达 / 编程问答 / php问题 / 正文

“php.exe"不是内部或外部命令、可运行程序或批处理文件

‘php.exe’ is not recognized as an internal or external command, operable program or batch file(“php.exe不是内部或外部命令、可运行程序或批处理文件)

本文介绍了“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"不是内部或外部命令、可运行程序或批处理文件