shell_exec causes infinite loop
问题 I have a problem with shell_exec. I try to run the other php file in a separate thread, according to this answer: https://stackoverflow.com/a/222445/1999929 I have this very-very simple code: <?php $realpath = realpath("./second.php"); file_put_contents("./log.txt","\nFirst php running!\n",FILE_APPEND); shell_exec("php $realpath > /dev/null 2>/dev/null &"); ?> I need this because i want to use this file for a dropbox webhook link, and it has to give a response in 10 seconds, while processing