Php Flow » Php

How To Setup PHP CLI on Windows XP

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
advanced_setting
Step 4:Click Environment variables
open_setting
Step 5: Click edit variables
edit_setting
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
set_path_var
Step 7: Now restart system and open command line run below command
php -v

Step 8: result:
result

Did you enjoy this article? Share it!

About the Author:

Hi, This is Parvez Alam from India. I am software developer with 4 years’ experience in web development. I have submitted articles on PHP, Mysql, Magento,CSS, HTML, jQuery, web designing and social API. You can subscribe to my blog via RSS/Twitter/Google plus and Facebook.

Random Posts

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>