简体   繁体   中英

Changed Windows PATH but still getting 'php.exe is not recognized ' errormessage

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?

PATH应该是一个目录,而不是一个文件,所以你应该把它设置为“c:\\ xampp \\ php \\”,而不是“c:\\ xampp \\ php \\ php.exe”

在此输入图像描述

Please check attach image. add path according to that. hope it will help you.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM