summaryrefslogtreecommitdiffstats
path: root/Under-Testing/Website/mutexTry.php
diff options
context:
space:
mode:
authorTriatmoko2011-11-17 00:22:13 +0100
committerTriatmoko2011-11-17 00:22:13 +0100
commitd85edc52219c83a76a18465a266caf40c58d0136 (patch)
tree8bd57d862d700d0820110ebe84a82e4fbe541edb /Under-Testing/Website/mutexTry.php
parentnew port number for communication with GSMBox (diff)
downloadgsm-selftest-d85edc52219c83a76a18465a266caf40c58d0136.tar.gz
gsm-selftest-d85edc52219c83a76a18465a266caf40c58d0136.tar.xz
gsm-selftest-d85edc52219c83a76a18465a266caf40c58d0136.zip
copy flush handling from website folder
Diffstat (limited to 'Under-Testing/Website/mutexTry.php')
-rwxr-xr-xUnder-Testing/Website/mutexTry.php15
1 files changed, 8 insertions, 7 deletions
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 @@
<body onscroll="scrollEvent();" onload="loaderInit();">
<div>
<?php
+@apache_setenv('no-gzip',1);
+@ini_set('zlib.output_compression',0);
+@ini_set('implicit_flush',1);
//Connection stuff
include 'dbconnection.php'
@@ -105,7 +108,8 @@ if ($locking == '1') //1 means nobody is on the website
$UNISIPP = 2;
$NANOBTS1P = 2;
$NANOBTS2P = 2;
-
+ echo str_pad(' ',4096).'<br>'."\n";
+ ob_implicit_flush(1);
echo '<div id="main">
<table summary = "Results">
<thead>
@@ -141,9 +145,8 @@ if ($locking == '1') //1 means nobody is on the website
echo '<div id="sidebar">';
echo "<a class='pChart' href='networkResult.php?S=$SIP&RZ1=$GSMRZ1&RZ2=$GSMRZ2&RZ3=$GSMRZ3&US=$UNISIP&LL=$LANDLINE&LS=$LSFKS&EE=$GSMEE&EV=$GSMEV&ET=$GSMET&EO=$GSMEO&SP=$SIPP&SGP=$LANDLINEP&USP=$UNISIPP&NBP1=$NANOBTS1P&NBP2=$NANOBTS2P&TASKID=$taskNo' data-pchart-alt='Picture3'>Picture 3</a></div>";
echo '<div id="footer"><font size ="3" face="Century Gothic" color="black"> Number of tasks: '.$taskAmount.'<br> Number of tasks tried to add to the DB but had an error: '. $errorAdding .'<br> TEST SUCCESSFULLY FINISHED!</font></div>';
- 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
<td> ' . $dataForTable[4] . ' </td>
<td>' . $dataForTable[3] . '</td>
</tr>';
-
- 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
}