Re: stdout as input
| From: | Christoph Boget | Date: | Thu, 24 Sep 2009 16:40:32 +0000 |
| Subject: | Re: stdout as input | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-298323@lists.php.net to get a copy of this message | ||
> Exactly. And if you just want redirected data you can try:
> $data = file_get_contents("php://stdin");
> --or--
> For an array of lines:
> $lines = file("php://stdin");
This is exactly what I was looking for. Thanks Shawn and Ben!
thnx,
Christoph