Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to run PHP via the command line (Windows 7), however it's a pain tuping the full path to PHP every time. I tried using mklink

mklink /D "c:\xampp\php\php" php

however that doesn't seem to have done the trick, it just tells me when I type php that it's not a recognised program or command...

share|improve this question
up vote 1 down vote accepted

Add c:\xampp\php to your PATH environment variable. See here:

How to set the path in Windows 7

share|improve this answer
Thanks, this worked a treat – BenOfTheNorth Mar 18 '13 at 17:59

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .