<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>rockstar2007</author_name>
  <author_url>https://blog.hatena.ne.jp/rockstar2007/</author_url>
  <blog_title>三十路エンジニアの備忘録+α</blog_title>
  <blog_url>https://rockstar2007.hatenadiary.org/</blog_url>
  <categories>
    <anon>PHP</anon>
  </categories>
  <description>今更基本的なことですが、 while (!feof($cat_fp)) { usleep(100000); echo $cat_count; $cat_count++; if (50 &lt; $cat_count) break; }PHPで上記のようなスクリプトがあると、実行して約5秒後に一気に$cat_countが出力されます。しかし、下記のようにob_flush();を入れることで随時出力されるようになります。 while (!feof($cat_fp)) { usleep(100000); echo $cat_count; ob_flush(); $cat_count++; if (50 &lt;…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Frockstar2007.hatenadiary.org%2Fentry%2F20090829%2F1251515026&quot; title=&quot;PHPのechoやprintで随時出力する方法 - 三十路エンジニアの備忘録+α&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2009-08-29 12:03:46</published>
  <title>PHPのechoやprintで随時出力する方法</title>
  <type>rich</type>
  <url>https://rockstar2007.hatenadiary.org/entry/20090829/1251515026</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
