Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.