Well, here is the final final right award answer; -)
This uses wget to notify the URL of something without expecting it.
$command = 'wget -qO- http://test.com/data=data'; exec('nohup ' . $command . ' >> /dev/null 2>&1 & echo $!', $pid);
This uses ls to update the log without waiting.
$command = 'ls -la > content.log'; exec('nohup ' . $command . ' >> /dev/null 2>&1 & echo $!', $pid);
Paul T Aug 02 '14 at 10:17 2014-08-02 10:17
source share