Re: PHP Shell doesn't run on a system
| From: | Curt Zirzow | Date: | Mon, 22 Sep 2003 07:20:56 +0000 |
| Subject: | Re: PHP Shell doesn't run on a system | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-163417@lists.php.net to get a copy of this message | ||
* 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
(no, that isn't a typo with .php.php)
> $input=fgets($fp, 255);
>
>
> And while we're at it, has anyone written a tool that will tell you
> what's different between server setups?
I use diff on unix.
Curt
--
"I used to think I was indecisive, but now I'm not so sure."