PHP ob_implicit_flush() လုပ်ဆောင်ချက်
❮ PHP အထွက်ထိန်းချုပ်မှုလုပ်ဆောင်ချက်များ
ဥပမာ
output ထုတ်ပေးသည့် ကြေငြာချက်တိုင်းတွင် အကြောင်းအရာကို ဘရောက်ဆာထံ ချက်ချင်း ပို့ပါ-
<?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);
?>
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
ob_implicit_flush()
လုပ်ဆောင်ချက်သည် သွယ်ဝိုက်သောနည်းဖြင့် တွန်းထုတ်ခြင်းကို ဖွင့်ပေးသည် သို့မဟုတ် ပိတ်ထားသည် ။ flush()
ဖွင့်ထားသောအခါတွင်၊ သွယ်ဝိုက်သောနည်းဖြင့် ထုတ်လွှတ်ခြင်းသည် လုပ်ဆောင်ချက်ကို မလိုအပ် စေရန် ထုတ်လုပ်ပြီးသည်နှင့် တပြိုင်နက် ဘရောက်ဆာထံ တိုက်ရိုက်ပေးပို့သည် ။
အထားအသို
ob_implicit_flush(flag);
ကန့်သတ်တန်ဖိုးများ
Parameter | Description |
---|---|
flag | When set to 1, implicit flushing is turned on. When set to 0, implicit flushing is turned off. |
နည်းပညာဆိုင်ရာအသေးစိတ်
PHP ဗားရှင်း- | 4+ |
---|
❮ PHP အထွက်ထိန်းချုပ်မှုလုပ်ဆောင်ချက်များ