'php.exe'不被识别为内部或外部命令,可操作的程序或批处理文件 [英] ‘php.exe’ is not recognized as an internal or external command, operable program or batch file

查看:159
本文介绍了'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如下所示: p>

My environment variable PATH is shown below:


C:\Program Files\NVIDIA Corporation\PhysX\Common; C:\Program
Files \Common Files \Microsoft Shared\Windows Live; C:\Program Files\PC
...............
Files \QTSystem\; A :\xampp\php\php.exe

C:\Program Files\NVIDIA Corporation\PhysX\Common;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files\PC ............... Files\QTSystem\;A:\xampp\php\php.exe

我正在使用Windows 7。

I'm using Windows 7.

推荐答案

我认为您需要将其更改为A:\xampp\php\,并将其留在那里,然后将搜索文件的目录,还有:你试过调用php而不是php.exe,检查目录是否正确。

I think you need to change it to A:\xampp\php\ 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'不被识别为内部或外部命令,可操作的程序或批处理文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆