From 5cddb426bd475feeb72a5178286de7a9614fa344 Mon Sep 17 00:00:00 2001 From: auxlife Date: Wed, 29 Nov 2017 14:08:57 -0800 Subject: [PATCH] Create dbupload.cli.php --- dbupload.cli.php | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 dbupload.cli.php diff --git a/dbupload.cli.php b/dbupload.cli.php new file mode 100644 index 0000000..ba81d92 --- /dev/null +++ b/dbupload.cli.php @@ -0,0 +1,27 @@ +0) +{ + Login(); + while ($row = mysqli_fetch_array($results)){ + echo UploadBG($row["DateString"],$row["Type"],$row["Value"],$row["Payload"]); + ConfirmUpload($row["Payload"]); + } + Logout(); +} +else +{ + $cronjob = fopen("c:\\xampp\\htdocs\\drip\\cronjob.bat","w"); + fwrite($cronjob, "exit"); + fclose($cronjob); +} +DisconnectDB(); +$time_end = microtime(true); +$execution_time = ($time_end - $time_start); +echo PHP_EOL . 'Total Execution Time: '.$execution_time.' secs'; +?>