Wow you're quick!

Thanks a lot for your help! I really appreciate it

It seems I've tried every permutation in the book to get this far, but we did it. The secret is:
PHP Code:
print nl2br(shell_exec('command')); 
It's all so simple really, when you've found the answer.