Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

PHP-Stream Ausgaben?

Empfohlene Antworten

Veröffentlicht

Hallo zusammen,

ich habe ein Script, das Grafikkonvertierung und Resampling ganzer Ordner macht. Nun läuft dieses Script ca. 5min, sodass ich nicht 100%ig weiß wann es wirklich fertig ist... Es läuft auch weiter, wenn ich den Browser schließe.

Nun hab ich in diversen Chats und dem Webmin gesehen, das es funktioniert immer eine Ausgabe an den Browser zu schicken. Also quasi bei jedem Abgeschlossenen Bild einfach einen Punkt mit Umbruch auszugeben.

Ein Einfaches echo oder print macht nicht, weil es irgendwie noch zwischengespeichert und anschließend als ganzes Päckchen an den Browser geschickt wird.

Hat jemand sowas in der Art schonmal gebaut? Also simpelstes Beispiel

for($i=0;$i<100;$i++)

{

echo $i . '% erledigt <br>';

sleep ( 25 );

}

funktioniert nicht so, das bei jedem echo die Ausgabe an den Server geschickt wird.

Bin für alle Hint's dankbar!

Hi,


for($i=0;$i<100;$i++)
{

echo $i . '% erledigt <br>';
sleep ( 25 );
flush();
}
[/php]

Gruß Jaraz

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.