Yes you can do:
$f = fopen('php://input', 'r'); if (!$f) die("Couldn't open input stream\n"); $data = ''; while ($buffer = fread($f, 8192)) $data .= $buffer; fclose($f);
But the question you need to ask yourself is why is file_get_contents working on windows? Because if it does not work, I doubt that fopen will work for a single thread ...
source share