Suppose I'd like to run a server side command with PHP on form submit via my webpage. The command is du -hs which could take several minutes to complete. Could I use exec() or shell_exec() in a way so that the webpage reloads immediately and doesn't wait for the output of the command? An example would be great! Thanks!
<?php
exec('du -hs');
?>