Run php on command line

So I have 1 machine that can execute php files on the command line just fine.

I'm trying to set it up on another machine so I installed phpED.  But when I'm at a command prompt it doesn't know what to do when I type php.  I'm pretty sure I need to tell it through an Environment variable where php.exe is, but I looked at the machine that IS working and there is no Environment variable set for php.

So, I'm confused.
hrolsonsAsked:
Who is Participating?
 
giltjrConnect With a Mentor Commented:
Is the location of php.exe in the PATH variable?

echo %path%
0
 
Dave BaldwinFixer of ProblemsCommented:
It could be setup in Folder Options for the PHP file-type.  I don't know what phpED is.
0
 
jcimarronCommented:
hrolsons--
I understand you do not use phpED on the PC which opens .php files from a command prompt just fine.
Why don't you open .php files on the PC that has phpED the same way?
0
 
hrolsonsAuthor Commented:
I totally missed it.  I didn't realize there are a whole bunch of programs on PATH and I didn't know that.  Sure enough, when I copied the value over to Notepad, there it was.

Sorry to waste your time.
0
 
LeeTutorretiredCommented:
I've requested that this question be deleted for the following reason:

Not enough information to confirm an answer.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.