php execute command and wait code example
Example: php exec without waiting
"> /dev/null 2>/dev/null &"
shell_exec('your_command > /dev/null 2>/dev/null &');
"> /dev/null 2>/dev/null &"
shell_exec('your_command > /dev/null 2>/dev/null &');