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

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

1 Answer 1

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 –  Ben Griffiths 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.