955269a8e52574542429dc743d602f55258e9967
[xynt.git] / web / winstream_rd.php
1 <html>
2 <head>
3 <script type="text/javascript" src="xynt/xynt-console.js"></script>
4 </head>
5 <body>
6 </body>
7 <?php
8 function mop_flush()
9 {
10     ob_flush();
11     flush();
12 }
13
14 function main()
15 {
16     $s = "";
17     for ($i = 0 ; $i < 4096 ; $i++) {
18         $s .= rand(0,255);
19     }
20     for ($i = 0 ; $i < 20 ; $i++) {
21         
22         /*                    parent.document.getElementById('cont').innerHTML = \"%d\";
23                              parent.allmythings =  \"%d\"; */
24         printf("<script type=\"text/javascript\">
25                     parent.allmythings = %d;
26                     console.log(\"zorro \"+parent.allmythings);
27
28                 </script>", $i);
29         if ($i == 0)
30             printf("%s", $s);
31         mop_flush();
32         sleep(1);
33     }
34 }
35 main();
36 ?>