Solved

Run php on command line

Posted on 2013-12-06
6
443 Views
Last Modified: 2013-12-29
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.
0
Comment
Question by:hrolsons
6 Comments
 
LVL 83

Expert Comment

by:Dave Baldwin
ID: 39701676
It could be setup in Folder Options for the PHP file-type.  I don't know what phpED is.
0
 
LVL 57

Accepted Solution

by:
giltjr earned 500 total points
ID: 39701690
Is the location of php.exe in the PATH variable?

echo %path%
0
 
LVL 50

Expert Comment

by:jcimarron
ID: 39701842
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
 

Author Comment

by:hrolsons
ID: 39702653
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
 
LVL 59

Expert Comment

by:LeeTutor
ID: 39744828
I've requested that this question be deleted for the following reason:

Not enough information to confirm an answer.
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
how can i gnupg encrypt a PDF document? 12 32
Cannot Change Local DNS 9 44
see android hidden files 10 28
What does this formatting equate to? 7 10
You may have a outside contractor who comes in once a week or seasonal to do some work in your office but you only want to give him access to the programs and files he needs and keep privet all other documents and programs, can you do this on a loca…
On some Windows 7 (SP1) computers, Windows Update becomes super slow even the computer is reasonably fast.  There's one solution that seemed to have worked well for me (after trying a few other suggested solutions).
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question