"Martin A. Marques" <[EMAIL PROTECTED]> 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/ 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to