From d85edc52219c83a76a18465a266caf40c58d0136 Mon Sep 17 00:00:00 2001 From: Triatmoko Date: Thu, 17 Nov 2011 00:22:13 +0100 Subject: copy flush handling from website folder --- Under-Testing/Website/mutexTry.php | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'Under-Testing/Website/mutexTry.php') diff --git a/Under-Testing/Website/mutexTry.php b/Under-Testing/Website/mutexTry.php index 3bf32c8..20da2a4 100755 --- a/Under-Testing/Website/mutexTry.php +++ b/Under-Testing/Website/mutexTry.php @@ -8,6 +8,9 @@
'."\n"; + ob_implicit_flush(1); echo '
@@ -141,9 +145,8 @@ if ($locking == '1') //1 means nobody is on the website echo '"; echo ''; - echo str_repeat("\n",7024); - flush(); - usleep(100); + ob_implicit_flush(1); + usleep(100); fwrite($fp, 'DISCONNECT'); //tell the testing software it may close break; } @@ -901,9 +904,7 @@ if ($locking == '1') //1 means nobody is on the website '; - - echo str_repeat("\n",7024); - flush(); + ob_implicit_flush(1); usleep(100); fwrite($fp, "CONTINUE"); //tell the software to proceed with the test and confirm receiving data } -- cgit v1.2.3-55-g7522
' . $dataForTable[4] . ' ' . $dataForTable[3] . '