How to run the intercative PHP shell from the command line?

Recommended Answers

From the command line:

php -a

assuming you've set your path variable correctly

Jump to Post

All 3 Replies

From the command line:

php -a

assuming you've set your path variable correctly

Write $ php -a at the command line.

if you dont have PHP in your env variables, you need to use the full path to PHP

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.