Php – Changed Windows PATH but still getting ‘php.exe is not recognized ‘ errormessage

pathPHPwindowsxamppzend-framework

I changed the PATH environment variable to: c:\xampp\php\php.exe

Path to zend framework: c:\xampp\php\ZendFramework-1.11.5

My include_path looking like this: include_path = "C:\xampp\php\;C:\xampp\php\ZendFramework-1.11.5\library"

So then my windows terminal statement going: C:\xampp\php\zendframework-1.11.5\bin\zf.bat create new project quikstart

But still I keep getting the error in the prompt that says

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

What is going on?

Best Answer

PATH should be a directory, not a file, so you should set it to "c:\xampp\php\", not "c:\xampp\php\php.exe"

Related Topic