RE: [PHP] pipe into php
| From: | Mark Maggelet | Date: | Mon, 28 Aug 2000 14:28:21 +0000 |
| Subject: | RE: [PHP] pipe into php | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-13944@lists.php.net to get a copy of this message | ||
On Mon, 28 Aug 2000 15:32:50 +0200, andreas.halter@comfone.com
(andreas.halter@comfone.com) wrote:
>Hi,
>
>q> -----Original Message-----
>q> From: Mark Maggelet [mailto:maggelet@mminternet.com]
>q> Sent: Monday, August 28, 2000 3:28 PM
>[cut]
>q> >both files made executable do well. but
>q> >
>q> >bash:# ./script1 | ./script2
>q> >
>q> >doesn't work at all ...
>q>
>q> how about ./script1 | xargs ./script2
>q>
>q> - Mark
>
>well, that might be one way. problem is that the program
>delivering the output is httpd :-) so I can't invoke another
>program really.
why not? you're invoking another program anyway, no?
>i'm rather looking for the 'good' variable.
I don't understand, but I think you're getting arguments confused
with the input stream. as far as I know, there is no way for php to
deal with its input stream, but I think there's readline functions in
php4 that you might get to do what you want.