PHP ob_implicit_flush() İşlev
❮ PHP Çıkış Kontrol Fonksiyonları
Örnek
Çıktı üreten her ifadede içeriği hemen tarayıcıya gönderin:
<?php
// Turn on implicit flushing
ob_implicit_flush(1);
// Some
browsers will not display the content if it is too short
// We use
str_pad() to make the output long enough
echo str_pad("Hello World!",
4096);
// Even though the script is still running, the browser already
can
see the content
sleep(3);
?>
Tanım ve Kullanım
İşlev ob_implicit_flush()
, örtülü temizlemeyi etkinleştirir veya devre dışı bırakır. Etkinleştirildiğinde, örtük temizleme, çıktıyı üretilir üretilmez doğrudan tarayıcıya gönderir, böylece flush()
işlev çağrılarına gerek kalmaz.
Sözdizimi
ob_implicit_flush(flag);
Parametre Değerleri
Parameter | Description |
---|---|
flag | When set to 1, implicit flushing is turned on. When set to 0, implicit flushing is turned off. |
Teknik detaylar
PHP Sürümü: | 4+ |
---|
❮ PHP Çıkış Kontrol Fonksiyonları