I've done a lot of googling but not found why this doesn't work (all variables defined earlier in code):
shell_exec("curl https://$domain/testscript.php?o=".strval($num1)."&t=".strval($num2)." > /dev/null 2>&1 &");
The script gets executed but my calling scripts remains unresponsive until completion, defeating the whole purpose.
Most examples I find use a direct call to the php interpreter but I'm unable to use that method because:
- the query strings don't then work
- I get a lot of errors due to relative paths which I cannot easily resolve