Avatar of hrolsons
hrolsonsFlag for United States of America

asked on 

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.
PHPWindows 7Programming

Avatar of undefined
Last Comment
LeeTutor
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

It could be setup in Folder Options for the PHP file-type.  I don't know what phpED is.
ASKER CERTIFIED SOLUTION
Avatar of giltjr
giltjr
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of jcimarron
jcimarron
Flag of United States of America image

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?
Avatar of hrolsons
hrolsons
Flag of United States of America image

ASKER

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.
Avatar of LeeTutor
LeeTutor
Flag of United States of America image

I've requested that this question be deleted for the following reason:

Not enough information to confirm an answer.
PHP
PHP

PHP is a widely-used server-side scripting language especially suited for web development, powering tens of millions of sites from Facebook to personal WordPress blogs. PHP is often paired with the MySQL relational database, but includes support for most other mainstream databases. By utilizing different Server APIs, PHP can work on many different web servers as a server-side scripting language.

125K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo