Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

I want to develop using a framework called Symfony but I do not have a Mac and I don't want to dual boot with Debian.

I tried virtual hosts via Virtual Box but it doesn't work. So I decided to stay on Windows.

So when the tutorial tells me to do

php lib/vendor/symfony/data/bin/check_configuration.php

i do in the windows cmd :

php libvendorsymfonydataincheck_configuration.php

and it tells me:

'php' is not recognized as an internal or external command

I use UwAmp (php 5.2.12 + mysql + apache) which is stored in

E:logicielsUwAmp

inside I have bunch of files, but I guess that is important:

E:logicielsUwAmpapachephp_5.2.11

How to make the cmd PHP in the windows cmd work properly?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
464 views
Welcome To Ask or Share your Answers For Others

1 Answer

You'll have to add the directory in which the php executable is located to your "path" variable (I guess in your case that would be E:logicielsUwAmpapachephp_5.2.11 ). In Windows, you can do that as described here: http://www.computerhope.com/issues/ch000549.htm

Any directory you place in this path variable (they're separated by a semicolon) will be automatically used in, for example, a cmd shell.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...