I’m trying to run my PHP script on linux server once a day automatically without having to press something, only once and process keeps running till a specific date,
How do I do this WITHOUT making a high traffic load on the server?
what i did so far is using ignore_user_abort() function to keep it running and also using sleep() function in a while loop to check every specific time how much left for the next day but it seemed a high process for the server
What’s the easiest way to do this?
If you’re using a Linux server, there’s a much easier way. Simply create a cron job (tutorial) to run the script once a day.
I’ve never used it, but a Windows server should have something called “Task Scheduler” to do the same thing.