From 8791be62cca96b0faa6b57ec1b3faab50d4f3175 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20=C5=A0ijanec?= Date: Mon, 20 May 2019 22:15:18 +0200 Subject: fixed some ridiculous errors never commit, push before verifying if the actual program works, silly me... --- server-status-logger.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'server-status-logger.php') diff --git a/server-status-logger.php b/server-status-logger.php index b1fa4e2..3663f3c 100644 --- a/server-status-logger.php +++ b/server-status-logger.php @@ -1,8 +1,8 @@ #!/usr/bin/env php -# file updated 20. may 2019, 22:00 from http://razor.arnes.si/~asija3/files/server-status-logger.php +#file updated from http://razor.arnes.si/~asija3/files/server-status-logger.php at 29. may 2019 at 22:14 open($dbfile); } } @@ -79,7 +80,9 @@ function tablefromhtml($urltoget) { $countTable = $dbConnect->querySingle("SELECT COUNT(*) as count FROM ".$tablename.""); $countTable = true; while($countTable) { // while true basically + echo "r"; $table = tablefromhtml($url); + // var_dump($table); // debug end($table); $lastkey = key($table); for($i=1;$i <= $lastkey;$i++) { @@ -106,9 +109,6 @@ while($countTable) { // while true basically } else { echo "x"; } - } else { - echo "whoops?\n"; - $dbConnect->lastErrorMsg(); } } } @@ -119,7 +119,7 @@ while($countTable) { // while true basically -function build_table($array){ // not needed, maybe for debugging +function build_table($array){ // start table $html = ''; // header row -- cgit v1.2.3