I want to run a shell script in php, but this shell script takes a long time to execute (it has sleep in it), I don\'t want the web server to block when executing this scrip
I solved the problem by adding
"> /dev/null 2>/dev/null &"
after the script name to the shell_exec() php function
shell_exec()
Thanks