testfileValidator.php (431B)
1 <?php 2 // Server connection details 3 $servername = "86.92.67.21"; 4 $username = "friedel"; 5 $password = "hailiwa"; 6 $dbname = "wap2"; 7 8 $db_connection = mysqli_connect($servername, $username, $password, $dbname); 9 10 $redis = new Redis(); 11 $redis->connect('127.0.0.1', 6379); 12 13 include'datavalidator.php'; 14 15 $success = $redis->flushDB(); 16 17 18 19 //echo validate_temperature(100, 80, $redis); 20 //echo " "; 21 //echo $redis->lIndex('average100', 0); 22 23