How to run php file using command prompt(cmd)


Go to
Control pannel->System>Advanced System Settings>Environment Variables
Click new

Variable name : path
Variable value : D:\wamp\bin\php\php5.3.13\ /* path of your php folder */

Click ok

Now you can run you php file using php keyword like below

D:\wamp\www>php hello.php

Advertisements