Solved

Run php on command line

Posted on 2013-12-06
6
441 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 82

Expert Comment

by:Dave Baldwin
Comment Utility
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
Comment Utility
Is the location of php.exe in the PATH variable?

echo %path%
0
 
LVL 50

Expert Comment

by:jcimarron
Comment Utility
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
Comment Utility
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
Comment Utility
I've requested that this question be deleted for the following reason:

Not enough information to confirm an answer.
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

A short article about problems I had with the new location API and permissions in Marshmallow
This article discusses four methods for overlaying images in a container on a web page
This Micro Tutorial will give you a introduction in two parts how to utilize Windows Live Movie Maker to its maximum capability. This will be demonstrated using Windows Live Movie Maker on Windows 7 operating system.
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 …

772 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now