summaryrefslogtreecommitdiffstats
path: root/notFinishedCode/tricode/execute.php
blob: a384da153f8aa4aa89e9b6601c5d58a08638922e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<html>
<head>
<script src='delayedLoading.js' type="text/javascript"></script>
<!--ADD HERE ALL THE NEEDED META DATA -->
<title>Network test live results!</title>
<link rel="stylesheet" href="css/tableCSS.css" type="text/css" media="screen">
</head>
<body onscroll="scrollEvent();" onload="loaderInit();">
<div>
<?php
   $ip = "localhost";
   $port = 34600;
   $startApp = fsockopen($ip, $port, $errno, $error, 5);
   if (!$startApp)
   {
        printf('ERROR');
   }
   else
   {
        socket_set_timeout( $startApp, 50); //one should set the number of the longest test, so we can define the timeout
        fwrite($startApp, "START APP");
        usleep(500);
        fclose($startApp);

   }
?>
</div>
</body>
</html>