<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>IwamotoTakashi</author_name>
  <author_url>https://blog.hatena.ne.jp/IwamotoTakashi/</author_url>
  <blog_title>岩本隆史の日記帳（アーカイブ）</blog_title>
  <blog_url>https://iwamototakashi.hatenadiary.jp/</blog_url>
  <categories>
    <anon>PHP</anon>
  </categories>
  <description>PHPにおける排他制御のベストプラクティスが分からなかったので、定評のありそうな「Perlメモ」の「排他制御(ファイルロック)をする」を移植してみました。誤りがあるかもしれませんので、お気づきの方はご指摘いただけると助かります。 &lt;?php function my_flock($options = array()) { $lfh = array_merge(array('dir' =&gt; './lockdir/', 'basename' =&gt; 'lockfile', 'timeout' =&gt; 60, 'trytime' =&gt; 10), $options); $lfh['path'] = $lfh…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fiwamototakashi.hatenadiary.jp%2Fentry%2F20080602%2Fp1&quot; title=&quot;「Perlメモ」の排他制御ロジックをPHPに移植してみた - 岩本隆史の日記帳（アーカイブ）&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>2008-06-02 00:00:00</published>
  <title>「Perlメモ」の排他制御ロジックをPHPに移植してみた</title>
  <type>rich</type>
  <url>https://iwamototakashi.hatenadiary.jp/entry/20080602/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
