* Thus wrote Nicolas Frisby ([EMAIL PROTECTED]):
>
> Is my suspicion that the CLI php parser does not set up STDIN to receive
> from a pipe correct, or am I missing something here?
I think the problem might be DOS's attempt to do a real pipe.
>
> pps - if someone could try similar piping on a
On Tuesday 05 August 2003 13:25, Nicolas Frisby wrote:
[snip]
> executes the script with arguments), I attempted some piping; which,
> through very shallow research, I've come to think uses STDIN.
I don't think it does.
> It fails; no piping whatsoever. Even the simplest 'dir | echo.php', where
On Wednesday 06 August 2003 22:35, Curt Zirzow wrote:
> pipe.php:
> $fp = fopen("php://stdin", "r");
> while (!feof($fp) ) {
> print "piped: " . fgets($fp);
> }
>
> % dir | php pipe.php
>
> results:
> piped: total 42
> piped: drwxr-xr-x 12 curt www512 Aug 6 14:31 ./
> piped: drwxr-xr
On 06 August 2003 15:19, Jason Wong wrote:
> On Wednesday 06 August 2003 21:29, Nicolas Frisby wrote:
>
> > Regardless of that, do you know anything of how the piping mechanism
> > works?
>
> Not really. I do know that what you're trying to do doesn't work for
> bash scripts either. IE you canno
Hi,
Tuesday, August 5, 2003, 3:25:47 PM, you wrote:
NF> Greets everybody.
NF> My question regards psuedo-DOS (XP cmd.exe) piping and the CLI php parser.
NF> If you could help please continue reading.
NF> The documention specifies that the CLI php parser "sets up" STDIN and its
NF> kin.
NF> It d
On Wednesday 06 August 2003 21:29, Nicolas Frisby wrote:
> Regardless of that, do you know anything of how the piping mechanism
> works?
Not really. I do know that what you're trying to do doesn't work for bash
scripts either. IE you cannot use a pipe to pass command line arguments to a
bash sc
Sorry Jason, I didn't catch my typo about the echo program until
recently.
Regardless of that, do you know anything of how the piping mechanism
works?
Thanks for your time,
-Nick
"Jason Wong" <[EMAIL PROTECTED]> wrote in message
news:<[EMAIL PROTECTED]>...
> On Tuesday 05 August 2003 13:25, Nico
7 matches
Mail list logo