Re: Pipe

From: Date: Mon, 04 Mar 2002 03:38:31 +0000
Subject: Re: Pipe
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-87028@lists.php.net to get a copy of this message
On Sun, 2002-03-03 at 19:32, Ken Tossell wrote: > What var is the piped data placed in? > > Php 4.1 executable rhlinux 2.4.17 I'm gonna assume that you mean that you're doing something like this: % cat somefile.txt | script.php In which case, you'd need to fopen() the file 'php://stdin' and read from it. Hope this helps, Torben -- Torben Wilson <torben@php.net> http://www.thebuttlesschaps.com http://www.hybrid17.com http://www.inflatableeye.com +1.604.709.0506

« previous php.general (#87028) next »