Adding php location to environment variables path in windows

You can add a location to system Environment Variables PATH by following simple steps give below. For example i wanted to add my PHP directory path i.e. C:\wamp\bin\php\php5.3.13 to Environment Variables > Path value in Windows 7

  • Open Control Panel\System and Security\System in Windows Explorer or through Programs menu
  • Click Advanced System Settings from left hand menu
  • Click “Environment Variables” button
  • In the box under “System Variable” find “Path” in options. Double click the line that contains “Path”
  • Add ;C:\wamp\bin\php\php5.3.13 to the values. Notice that we have added a semicolon (;) to make it separated with other existing values.
  • Click Ok, Ok to save values to close opened edit panels.

You have successfully added a location/value to system Environment Variables PATH.

Now once you go to command prompt in windows if you type php -v you will able to see the php version information there…and can execute your php file directly through the command prompt…

 

Comments
One Response to “Adding php location to environment variables path in windows”
  1. custom your own shirt says:

    whoah this blog is great i really like studying your articles.
    Keep up the good work! You know, lots of people are hunting round for this information, you can aid them greatly.

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.