Date: 11/25/07 (PHP Community) Keywords: php Howdy,
$max = $_SERVER[‘CONTENT_LENGTH’];
$fp = fopen(“php://input”, “rb”);
for($i=0; $i<$max; $i++) {
$ch = fread($fp, 1);
echo $ch;
flush();
ob_flush();
sleep(1);
}
fclose($fp);
It’s working right. But I’m interesting in this: how script retrieving data from php://input? Does it get data directly from browser? Or does PHP retrieve it by itself and later send data to script?
|