how do I write a command-line interactive php script?

Posted by user151841 on Stack Overflow See other posts from Stack Overflow or by user151841
Published on 2010-05-28T14:00:29Z Indexed on 2010/05/28 14:01 UTC
Read the original article Hit count: 249

Filed under:
|

I want to write a php script that I can use from the command line. I want it to prompt and accept input for a few items, and then spit out some results. I want to do this in php, because all my classes and libraries are in php, and I just want to make a simple command line interface to a few things.

The prompting and accepting repeated command line inputs is the part that's tripping me up. How do I do this?

© Stack Overflow or respective owner

Related posts about php

Related posts about shell