pipe into php
| From: | Andreas dot Halter at comfone dot com | Date: | Mon, 28 Aug 2000 12:03:11 +0000 |
| Subject: | pipe into php | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-13928@lists.php.net to get a copy of this message | ||
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 ...
anyone ? ;-)
thanks, andreas
**************************************************************
Andreas Halter Systems Administrator Comfone Ltd
fon: +41 31 959 3202 fax: +41 31 959 3216 gsm: +41 79 418 9146
mailto:andreas.halter@comfone.com /// http://www.comfone.com
worbstrasse 225 /// 3073 gümligen /// switzerland
**************************************************************
Comfone - the roaming broker