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

Recommended Answers

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 developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.