Re: Command line php

From: Date: Wed, 02 Apr 2003 00:42:57 +0000
Subject: Re: Command line php
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-141903@lists.php.net to get a copy of this message
STDIN is a file reference. Use the standard file functions (fread, for example) on it. John Nichel wrote:
How do I capture standard input? <?php $name = STDIN; echo ( "Hello " . STDIN . "\n" ); ?> ????
-- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.

« previous php.general (#141903) next »