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'; +?>