* Thus wrote Weston Cann ([EMAIL PROTECTED]):
> 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."

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to