1
I made a script PHP
which has to be executed at all times, usually from 1 to 1 seconds or at most 2 to 2 seconds. The problem is that I have configured several command lines in CRON to run every 1 second, but CRON changes the configuration automatically because I think it overloads the server.
My question is that I would like to put the script to run from X in X seconds without even having any user on the site. It would have a way without using CRON ?
Run the PHP by the console infinite loop, with a 2-second Sleep, much simpler.
– Bacco
Just one detail: running the console is not that: http://answall.com/a/121742/ - here you are calling the page server with Curl. It’s the same as someone accessing the page. For constant tasks, you have to run PHP through the console.
php nomedoscript.php
– Bacco