Jump to content

[Solved] PHP in command line


subuntug
 Share

Recommended Posts

Hello;I'm newbie in synfony framwork and PHP development. I use windows cammand line. The problem is: every time I run the command c:/ PHP /somethingthe command line tell me that; PHP is not recognized as internal or external command. So to run PHP I have each time put the full path toward php program in my computer. How can I fix it ?Thank you in advance for your help.

Edited by subuntug
Link to comment
Share on other sites

Add the PHP executable's directory to the PATH environment variable.
That's what I did. I added this line in my environment variable: C:\Program Files\wamp\bin\php\php5.3.1;But it still doesn't work at all ! So, when I type the command echo %path% it shows me this:c:\windows\system32; c:\program files\wamp\bin\php\php5.3.1;So, what's wrong with my path system variable ?Thank you in advance.
Link to comment
Share on other sites

Get rid of the space after the semicolon.
...that was well spotted, lol.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...