| Posted by Hero Wanders on 06/16/02 11:25 
Hello!
 > I'd like to make a page with a sort of check list as it works.
 >
 > I.e. CHECKING FOR FILE... SUCCESS then a few seconds later it sends
 > OPENING HANDLE... SUCCESS, etc.
 >
 > But since PHP is server-side pause() wouldn't work... it only delays
 > the script from assembling the page before it sends it to the browser.
 > Can I send pieces at a time so I can get this sort of checklist effect
 > instead of waiting 20 seconds for it all to appear at once?
 
 Why do you want to use a pause() function (actually sleep())?
 I think the script should be executed as fast as possible.
 If your script is slow you may use this sequence to flush everything:
 
 flush();
 ob_flush();
 
 Using only flush() which seems (without trying) sufficient does not work
 (when I tried it).
 
 HTH
 Hero Wanders
  Navigation: [Reply to this message] |