I\'m calling this in my php script:
exec(\"gutschein.php >/dev/null 2>&1 &\");
Calling the script (generates a pdf and s
Can you try one of the following 2 commands to run background jobs from PHP:
$out = shell_exec('nohup /usr/bin/php /path/to/gutschein.php >/dev/null 2>&1 &');
OR
$pid = pclose(popen('/usr/bin/php gutschein.php', 'r'));
It will execute the command in background and returns you the PID, which you can check using condition $pid > 0 to ensure it has worked.