To try and clarify...

#!/usr/bin/php -q
<?

echo "please enter a word";
$fh = fopen('php://stdin')
$s = fgets($fh,100);
echo "you entered $s" ;

?>

Would this be affected by the change? - eg. would you need to flush();
before the prompt appeared?

Regards
Alan



Yasuo Ohgaki wrote:

>BTW, this is 2nd time
>
>http://marc.theaimsgroup.com/?l=php-dev&m=103525481227249&w=2
>
>Yasuo Ohgaki wrote:
>  
>
>>I thought it's obvious choice, but it seems it's not.
>>
>>Which one you prefer CLI behave like
>>
>>SH
>>
>>or
>>
>>PERL/RUBY/PYTHON
>>
>>--
>>Yasuo Ohgaki
>>
>>    
>>
>
>
>
>  
>




-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php


Reply via email to