Re: cvs: php4 /sapi/cli php_cli.c

From: Date: Fri, 24 May 2002 07:25:52 +0000
Subject: Re: cvs: php4 /sapi/cli php_cli.c
References: 1 2 3  Groups: php.dev 
Request: Send a blank email to php-dev+get-84388@lists.php.net to get a copy of this message
+1 ! On Fri, May 24, 2002 at 09:10:26AM +0200, Edin Kadribasic wrote : > What this patch does is basically this: > > define ('STDIN', fopen('php://stdin', 'r'); > ... > > I thinks it's useful to have these file descriptors always present in order > to make using cli as a command line pipe filter easier and more readable. An > example: > > php -i | php -r 'while ($l=fgets(STDIN)) echo strip_tags($l);' > > Edin > > > -- > PHP CVS Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- Please always Cc to me when replying to me on the lists. GnuPG Key: http://guru.josefine.at/~mfischer/C2272BD0.asc --------------------------------------------------------- "I mean "When in doubt, blame mcrypt" is more often right than wrong :)" "Always right, never wrong :)" - Two PHP developers who want to remain unnamed

« previous php.dev (#84388) next »