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

18,621

Solution 1

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

Solution 2

enter image description here

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

Share:
18,621
Immers
Author by

Immers

Updated on July 26, 2022

Comments

  • Immers
    Immers almost 2 years

    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?

  • twunde
    twunde about 12 years
    Palantir's advice is correct. Just remember to restart your command line after changing the path.