<html>
<head> 
 <title>ShowData.php  Temperatures serre</title>
<META HTTP-EQUIV="Refresh" CONTENT="30; URL=http://192.168.0.11/esp8266/ShowData.php"> 
</head>
<body>
Temperatures<br><br>
</body>
</html>

<?php

/*
this file 
    http://192.168.0.11/esp8266/ShowData.php
show file written by index.php

arduino's wifi module call the page index.php
    192.168.0.11/esp8266/index.php/?temp1=18.00&temp2=18.13&maxDelta=0.00&Mode=0&State=3 HTTP/1.1
passing parameters, 
extract and write a file sensors.txt with parameters info passed
has to decide, raw data in file, then pretty layout  ?..

below does not show cr
$file = file_get_contents('./sensors.txt', FILE_USE_INCLUDE_PATH);
echo $file;
echo '<br><br>________________<br>';
*/

/*   The example below reads the "webdictionary.txt" file line by line, until end-of-file is reached:
*/

$myfile = fopen("sensors.txt", "r") or die("Unable to open file!");
while(!feof($myfile)) {
  echo fgets($myfile) . "<br>";
}
fclose($myfile);

?>