PHP floş() İşlev
❮ PHP Çıkış Kontrol Fonksiyonları
Örnek
Komut dosyası çalışmayı bitirmeden önce tarayıcıya bir dize çıktısı alın:
<?php
// 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);
// Use flush() to send the string to the browser
flush();
// Display the rest of the content three seconds later
sleep(3);
echo "<br>";
echo "Hello World!";
?>
Tanım ve Kullanım
İşlev flush()
, sunucudan o anda arabelleğe alınmış çıktısını tarayıcıya göndermesini ister. Sunucu yapılandırması her zaman bunun olmasına izin vermeyebilir.
Sözdizimi
flush();
Teknik detaylar
PHP Sürümü: | 4+ |
---|
❮ PHP Çıkış Kontrol Fonksiyonları