Topic: Execute PHP script in background
I have noticed threads on how to execute a PHP script by using
but this will wait till the script is finished. The PHP script takes ages and want it to run in background something equivalent in PHP is this:
$command = "php ".$scripts_location."/import.php";
exec( "$command > /dev/null &", $arrOutput );
How can I go about doing this ?