RE: [PHP] Display progress in browser using flush(); IE versus NS
| From: | Sander Pilon | Date: | Fri, 26 Jan 2001 23:33:42 +0000 |
| Subject: | RE: [PHP] Display progress in browser using flush(); IE versus NS | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-36916@lists.php.net to get a copy of this message | ||
Netrape supports multipart documents. Read up on your mime types and
encodings, and use that to create a nice progressbar in netscape :)
> -----Original Message-----
> From: Chris Lee [mailto:lee@mediawaveonline.com]
> Sent: 26 January 2001 23:53
> To: php-general@lists.php.net
> Subject: Re: [PHP] Display progress in browser using flush(); IE versus
> NS
>
>
> havent tested this but im almost sure that netscape waits until the entire
> page is downloaded until being displayed IF there are tables on the page.
> write a small test script to see if Im right.
>
>
> --
>
>
>
> Chris Lee
> Mediawaveonline.com
> lee@mediawaveonline.com
>
>
>
>
>
> ""Spallek, Heiko"" <heiko@dental.temple.edu> wrote in message
>
> news:1184C4C362ADD111994B00805F9F6641E3E807@athena.dental.temple.edu...
> > Hi,
> >
> > I have a script which slowly processes several thousand lines of text. I
> > want to give users a feeling for that the process is not dead.
> Thus, I am
> > using:
> >
> > ...
> > print "processing ";
> > print"
> > ";
> > flush();
> >
> > for($i=0;$i<count($total);$i++) {
> > print".
> > ";
> > flush();
> > // do something time consuming
> > }
> > ...
> >
> > Works perfect in IE 5.5: It shows the word "processing" followed every 2
> > seconds (denpending on what I am doing) by a new period.
> >
> > But, in Netscape nothing shows up until the entire process has finished.
> > When I push "stop" on the Netspace menu it shows what was transfered so
> far
> > and "Transfer interrupted!" But, I would rather have it the way it is in
> IE.
> >
> > Any idea how to improve the code above?
> > Thanks!
> >
> > Der Heiko
> >
> > Buchtipp: http://www.aufbruch.com/
> > Heiko und Gisela Spallek:
> > Aufbruch ins Land der unbegrenzten Moeglichkeiten.
> > Studieren, Arbeiten und Leben in den USA: Tips fuer Neuankoemmlinge
> > 2. erweiterte und ueberarbeitete Auflage: ISBN: 3-934407-01-3
> >
> >
> >
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-general-help@lists.php.net
> > To contact the list administrators, e-mail: php-list-admin@lists.php.net
> >
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>