PHP exec() + stderr, stdout, & return code

Reply to comment

"tee - read from standard input and write to standard output and files"