Re: getting STDIO
| From: | Steve Werby | Date: | Fri, 02 Feb 2001 23:30:11 +0000 |
| Subject: | Re: getting STDIO | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-37919@lists.php.net to get a copy of this message | ||
"Martin A. Marques" <martin@math.unl.edu.ar> wrote:
> Lets say my script is named script1.php and I do:
>
> $ less file1 | script1.php
$fp = fopen( 'php://stdin', 'r' );
Then use the standard file handling functions to access the piped data.
--
Steve Werby
COO
24-7 Computer Services, LLC
Tel: 804.817.2470
http://www.247computing.com/