phpbar.de logo

Mailinglisten-Archive

[php] Daten kontinuierlich ausgeben?

[php] Daten kontinuierlich ausgeben?

Elmar Schalueck Elmar.Schalueck_(at)_ruhr-uni-bochum.de
Wed, 7 Apr 1999 15:37:58 +0100


<color><param>7F00,0000,0000</param>> Hi,

> ich stehe vor dem Problem fortlaufend Daten in ein Fenster schreiben

> zu m"ussen, "ahnlich wie es bei einem Web-Chat auch funktioniert.

> Die Ausgabe meiner Funktion wird aber erst angezeigt, wenn alle Zeilen

> "ubertragen sind:

>               $i=0;

>               WHILE ($i << 5): 

>                $zeit = mktime();

>                PRINT "$zeit<<BR>";

>                sleep(2);

>               $i++; 

>                ENDWHILE;

> Was ist zu tun? Wie kann ich Zeile f"ur Zeile sichtbar machen?

> Wie kann ich daf"ur sorgen, dass immer die unteren Zeilen sichtbar

> sind?

> Dankbar f"ur Hilfe.....


</color>Ich helfe mit einer nicht getesteten Version aus der internatiolen 
PHP-Liste:



From:           	<color><param>0000,0000,8000</param>Brian Schaffner <<BSchaffner_(at)_accentonline.com>

</color>To:             	<color><param>0000,0000,8000</param>'Manuel Lemos' <<mlemos_(at)_acm.org>, Howie Oakes 
<<php3_(at)_lists.php.net>

</color>Subject:        	<color><param>0000,0000,8000</param>RE: [PHP3] "loading please wait" screen...how to?

</color>Date sent:      	<color><param>0000,0000,8000</param>Thu, 25 Mar 1999 08:29:37 -0500


</color>or you could send a Header("Connection: keep-alive") followed by 
echo

"loading ..." followed by flush().... then send the data.


-brian-


<color><param>7F00,0000,0000</param>> -----Original Message-----

> From: Manuel Lemos [<underline><color><param>0000,8000,0000</param>mailto:mlemos_(at)_acm.org]

</underline><color><param>7F00,0000,0000</param>> Sent: Wednesday, March 24, 1999 4:32 PM

> To: Howie Oakes

> Subject: Re: [PHP3] "loading please wait" screen...how to?

> 

> 

> Hello Howie,

> 

> On 24-Mar-99 19:15:59, you wrote:

> 

> >I have noticed on some sites when I submit a form to search 

> a DB a simple

> >screen comes up that says "loading", then the results appear. I 
was

> >wondering if anyone had any idea how to do this...the url 

> does not change

> >when the page is coming up, so I assume there is a trick 

> using headers or

> >something...

> 

> There's a trick that consists in using an hidden frame with a form to

> submit query parameters and colect results using Javascript.

> 

> Regards,

> Manuel Lemos</color>

<nofill>
---
Dr. Elmar Schalueck
Ruhr-Universitaet Bochum
Dez. 2 - BIF
Projekt ELFI
D-44780 Bochum
Tel.: 0234/700-6182
Fax : 0234/7094-684
EMail: Elmar.Schalueck_(at)_ruhr-uni-bochum.de
WWW: http://www.elfi.ruhr-uni-bochum.de


php::bar PHP Wiki   -   Listenarchive