Jquery setInterval function and cronjob : The goal is to runs a code inside an interval function `setInterval(function {// do something}, 50000)` when a cron-job runs each 15 minutes for triggering `test.php`
In my code, I have a `setInterval` function in which runs the code at an interval time `50 seconds`. However when I run my code on a localhost server manually (instead of running it by a cron-job) and close the browser window before interval time (`50 seconds`) at my file location `localhost/test.php` then the code inside interval function won't runs!.  However if the browser window is open then the code inside interval runs. I am wondering if this is because of localhost server and if I trigger the code by setting up a `cron-job` on a live server then the code inside interval function will run despite the fact that there is no browser window on a live server to be open or close when the cron-job runs. Is that true or am I missing something?