On my Digital Ocean LAMP droplet I have a php script call_analysis.php which executes analysis.php in the background like this:
exec("nohup php /var/www/backlp.com/PCR/analysis.php $start_year $end_year $start_month $end_month $start_day $end_day > /dev/null &");
Is there any way to track the progress and get back the results so I can show them on call_analysis.php once analysis.php has finished?
Something like this here, but I'm not sure how to use it with an external script that's called: php execute a background process
Thanks for your help!