You are here: Re: Flushing outout to screen - ob_flush() « All PHP « IT news, forums, messages
Re: Flushing outout to screen - ob_flush()

Posted by d on 01/23/06 03:17

"Jay" <oiuoiu@oiuoiu.com> wrote in message
news:OOUAf.110026$6K2.81878@edtnps90...
> Hello!
> I have a script that I want to output to the screen (browser) in 2 parts:
> 1st part works fast (query of datbase and ouput to screen)
> 2nd part performs a javascript action which takes time.
>
> Is it possible to first output to screen the 1st part of the code (this
> way user has some information to look at)
> then ... perform the javascript?
>
> I've tried:
> flush();
> ob_flush();
> http://us2.php.net/manual/en/function.ob-flush.php
>
>
> Anyone have any success with this?

Yup - it's done exactly as you would imagine it. flush() takes care of it.
You must remember, though, that IE will not display anything unless the
flushed data is over a certain length, so you might want to output some
comments in your HTML to bulk up the size.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация