简体   繁体   中英

Set environment variable for php

I installed wamp server. Now I want to execute php script using cmd.

I set the following path in environment variable.

Path -> C:\wamp\bin\php\php5.4.16  

Now when I write

php -f c:\wamp\www\test\test.php

in cmd its giving

'php' is not recognized as an internal or external command,operable program or batch file

What you have given is correct

Path -> C:\wamp\bin\php\php5.4.16  

Can you please close your command prompt, reopen and try it again. The update will reflect now.

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