I am currently using the following php exec command to load the server side url, since I need a solution that does not include the cron job as well as asynchronous, i.e. the user can move from the page, the task is initiated, and the task will still be run:
exec("nohup curl ".$dbupdateurl." > /dev/null 2>&1 & echo $!");
This works fine, but rather unpredictably. Is there a better / more solid way to achieve this?
Thanks,
Matt
source share