Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
582 views
in Technique[技术] by (71.8m points)

windows - ‘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 FilesNVIDIA CorporationPhysXCommon;C:Program FilesCommon FilesMicrosoft SharedWindows Live;C:Program FilesPC ............... FilesQTSystem;A:xamppphpphp.exe

I'm using Windows 7.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
A:xamppphpphp.exe

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

Make that

A:xamppphp

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
...