My head hurts.

I've got a command line program that I would like to be able to see the results from as they are shown - by reading, I am seeing that instead of the exec() I should be useing passthru(). Could someone be kind enough not to flame me too bad, and post an example of the passthru command, say using ping? (I won't be using ping, but it would serve as a viable example.)

Thanks in advance.