Re: how to read the stuff that got piped (
| From: | Alex Earl | Date: | Tue, 27 May 2003 22:26:03 +0000 |
| Subject: | Re: how to read the stuff that got piped ( | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-149171@lists.php.net to get a copy of this message | ||
> hi,
>
> i've a simple question:
>
> how can i read the stuff that got piped ("|") to the php-script?
>
> i.e. "ls -l | /home/myuser/phpscript.php"
[snip]
It is the stdin of the script, you can open that file handle with fopen(
"stdin", "r" ); i believe
Slide