See system() and exec() PHP functions.
system("ls -la");
send output back to your browser.
system("ls -la >> /dev/null");
does not, of course.
system("ls -la >> /dev/null &");
forks a process, i.e. runs a background process and PHP scripts can continue.
regards