PHP - need help pausing script?

I'm trying to have a message print in one second intervals but haven't had any success doing this (there's PHP involved so JavaScript won't work.)

Here's what I have/want:

if(isset($_POST['mainSub'])) {
echo 'message';
//pause one second
echo '<br> message two';
// pause one second
echo '<br> message three';

//finish executing script

--

I've tried using sleep(); but it halts the entire page, where as I want just the content following the function to be delayed.
 
Back
Top