Re: PHP and the Console
| From: | Tim | Date: | Mon, 20 Aug 2001 16:54:28 +0000 |
| Subject: | Re: PHP and the Console | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-63532@lists.php.net to get a copy of this message | ||
I haven't tried this personally, but according to
http://www.php.net/manual/en/function.fopen.php
you can open the standard streams as php://stdin and php://stdout, which
should allow you to read and write to the user directly.
- Tim
On Mon, 2001-08-20 at 12:14, Bill Brigden wrote:
> Hi all,
>
> How could I use a script on the console - to interact, and take the users
> input. Like a shell/perl script - but in php?
>
> Bill.
>
>
>