Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

‘php.exe’ is not recognized as an internal or external command, operable program or batch file

‘php.exe’ is not recognized as an internal or external command, operable program or batch file.

Why does that error occur even though I've added PHP to my environment variables?

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

I'm using Windows 7.

like image 304
Sai Nikhil Avatar asked Dec 11 '11 13:12

Sai Nikhil


1 Answers

A:\xampp\php\php.exe 

The PATH environment variable must contain paths only, not file names.

Make that

A:\xampp\php 
like image 92
Pekka Avatar answered Sep 26 '22 00:09

Pekka