I want to constantly run a php program on the server that will load some things and store them.
I thought to create a script and run this in cron ..
But I wonder if there is any other simple method or light weight that takes up less memory on the server during continuous operation?
I thought of another simple thing
creating a php script with infinite max_execution time and running the code inside the while (true) loop (undefined loop) with some sleep, and then running the program using php ..
What would be the best available way to do this?
source
share