Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / multipart / resources / multipart.php
blob155b255208ca1a0c9fa6df4199aa120ad616c43d
1 <?php
2 $boundary = "cutHere";
4 function sendPart($data)
6 global $boundary;
8 echo("Content-Type: image/png\r\n\r\n");
9 echo($data);
10 echo("--$boundary\r\n");
11 flush();
14 $i = 1;
15 while ($img = $_GET['img' . $i]) {
16 $images[$i] = file_get_contents($img);
17 $i++;
20 if (isset($_GET['interval']))
21 $interval = $_GET['interval'] * 1000000;
22 else
23 $interval = 1000000;
25 header("Content-Type: multipart/x-mixed-replace; boundary=$boundary");
27 echo("--$boundary\r\n");
29 ob_end_flush();
30 do {
31 for ($k = 1; $k < $i; $k++) {
32 sendPart($images[$k]);
33 usleep($interval);
35 } while ($_GET['loop']);
37 if (isset($_GET['wait']))
38 usleep($_GET['wait'] * 1000000);