php - Print out in for loop -


this question has answer here:

is possible print out text in php while loop running? mean runs whole loop until end , can see text. need text every time when echo there in loop, not after whole loop. can give me example?

void flush (void)
flushes write buffers of php , whatever backend php using (cgi, web server, etc). attempts push current output way browser few caveats. (more)

there quite few caveats. make sure read linked page , comment section if encounter problems. example:

  • some versions of microsoft internet explorer start display page after have received 256 bytes of output, may need send whitespace before flushing browsers display page.

  • keep in mind internet explorer , safari have 1k buffer before incremental rendering kicks in, you'll want output padding well.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -