Hello,
I want to schedule multiple tasks from my web page.
For this reason, it is difficult to enter cpanel every time, so I will set cron jobs to run a file from cpanel twice per hour.
Since this file on my website will run cron jobs, all my tasks will be completed on time.
What I want to ask is this:
How can I enter values and get the time to run like cron jobs?
Is there a function that does this?
Sample:
function getTimeToWork($minute,$hour,$day,$moon,$day_of_the_week){
return mktime();
}
getTimeToWork("0,30 * * * *");