Re: pipe into php

From: Date: Mon, 28 Aug 2000 13:27:49 +0000
Subject: Re: pipe into php
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-13932@lists.php.net to get a copy of this message
On Mon, 28 Aug 2000 14:03:11 +0200, andreas.halter@comfone.com (andreas.halter@comfone.com) wrote: >Hi All, > >I'm trying to pipe the output of a programm into a php script. > >The following doesn't work. Anybody got an idea why ? > >script1: >#!/bin/php ><?php >print ("helloworld"); >?> > >script2: >#!/bin/php ><?php >while ($counter < $argc) { >print ("$argv[$counter]"); >$counter++; >} > >both files made executable do well. but > >bash:# ./script1 | ./script2 > >doesn't work at all ... how about ./script1 | xargs ./script2 - Mark

« previous php.general (#13932) next »