tusty has asked for the wisdom of the Perl Monks concerning the following question:
Whats this php:://input ??? and how do we do the same stuff in perl?// Read binary input stream and append it to temp file $in = fopen("php://input", "rb"); if ($in) { while ($buff = fread($in, 4096)) fwrite($out, $buff); } else die('{"jsonrpc" : "2.0", "error" : {"code": 101, "mess +age": "Failed to open input stream."}, "id" : "id"}'); fclose($in); fclose($out);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Rewrite plupload in perl.
by Anonymous Monk on Mar 22, 2011 at 10:38 UTC | |
by tusty (Novice) on Mar 22, 2011 at 10:44 UTC | |
by Anonymous Monk on Mar 22, 2011 at 10:47 UTC |