I used to use exec()
function to trigger new php threads (And don't need the output of these php scripts), something like
for ($i=0;$i<5;$i++) {
exec('/usr/bin/php script' . $i . '.php > /dev/null 2>&1 &');
sleep(1);
}
I'd like to ask if there is any alternative native PHP function to do the same job, since my web hosting provider does not enable exec
and i'm not willing to switch to another one.
Thank you very much.