Re: PHP Shell doesn't run on a system
| From: | weston at leary dot csoft dot net | Date: | Mon, 22 Sep 2003 16:32:27 +0000 |
| Subject: | Re: PHP Shell doesn't run on a system | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-163494@lists.php.net to get a copy of this message | ||
Curt Zirzow wrote:
> * Thus wrote Weston Cann (weston@canncentral.org):
> > A while back I wrote a small script that was designed to work as an
> > interactive interpreter for PHP code, a la Python. The script itself is
> > written in PHP, and is pretty basic:
> >
> > <?PHP
>
> > function readln()
> > {
> > $fp=fopen("/dev/stdin", "r");
> use fopen('php://stdin', 'r') instead.
>
> http://php.net/manual/en/wrappers.php.php
Muchas Gracias! That solves the problem -- now I just wish I understood why. /dev/stdin is present
on both the system the original script ran on and the problem system....
-W