Category : delay

I have a simple PHP page to download a pdf file. Here is the code $file = "C:temptest.pdf"; header("Pragma: public"); header("Expires: 0"); header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); header("Cache-Control: private", false); header("Content-Type: application/octet-stream"); header("Content-Disposition: attachment; filename="" . basename($file) . """); header("Content-Transfer-Encoding: binary"); header("Content-Length: " . filesize($file)); readfile($file); From another client i go with browser to the server ..

Read more

I have 10 sets of numbers into array, representing different days. <?php $day1 = [’23’, ’11’, ’52’, ’33’, ‘1’, ‘4’]; $day2 = [’66’, ’70’, ’55’, ‘8’, ’22’, ‘1’]; $day3 = [’38’, ’21’, ’52’, ’51’, ’53’, ‘9’]; $day4 = [’14’, ’31’, ’54’, ‘5’, ’73’, ’39’]; $day5 = [’10’, ‘3’, ’22’, ’59’, ’73’, ’39’]; $day6 = [’22’, ..

Read more

I have setup a private k8s cluster and I’m running Lumen 8 inside a pod deployment. I have a job that dispatches itself over and over again, passing new variables to the constructor each time and running different functionality depending on constructor params. I am using a database queue (PostgreSQL). class Job { const SOME_ACTION ..

Read more