Solved

Run php on command line

Posted on 2013-12-06
6
446 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

Question has a verified solution.

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

In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
When you try to share a printer , you may receive one of the following error messages. Error message when you use the Add Printer Wizard to share a printer: Windows could not share your printer. Operation could not be completed (Error 0x000006…
Progress
Starting up a Project

729 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