In this tutorial I will tell you how to setup or run php through command line. It’s very easy steps process, to configure php command line we need to change to windows environ variables.
The environment variable set to all users’ not only specific account, to prevent this you modify environment variable on your user account, So it will effect only your account.
setup PHP CLI on Windows XP
Step 1:Open control panel
Step 2:Go to System
Step 3:Go to Advanced System Settings
Step 4:Click Environment variables
Step 5: Click edit variables
Step 6: Now paste your php path
Variable name: Path
Variable value: %PATH%;C:\path\to\php
acoording my machines: C:\wamp\bin\php\php5.3.5
Step 7: Now restart system and open command line run below command
php -v
Step 8: result: