What I am trying to do is use PHP to create Cron Job on my linux server. I tried
exec("crontab -u jancom $pathtophpfile", $response), but it returns empty array.
I also want to set time to when should the crontab execute the task.
Maybe if I make database, put in scheduled tasks, than create php file that is ran by crontab every minute checking which tasks in database have to run and run them?
Bookmarks