<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>boss_sato</author_name>
  <author_url>https://blog.hatena.ne.jp/boss_sato/</author_url>
  <blog_title>初めてのシステムと日記</blog_title>
  <blog_url>https://bosssato.hatenablog.com/</blog_url>
  <categories>
    <anon>PHP</anon>
  </categories>
  <description>PHPで定期的にあるファイルを取得し、前回更新分のファイルfile_old.txtと今回更新分のファイルfile.txtで差分を見て更新があったかどうかを確認することを試す。 //ファイル取得 $file = file_get_contents([file_path]) if (!$file) { return false; } //初めてのチェックなら前回更新確認用のファイル作成 if (!is_file('file_old.txt') { shell_exec('touch file_old.txt'); } //初めてのチェックなら今回更新確認用のファイル作成 if (!is_file(…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbosssato.hatenablog.com%2Fentry%2F20100512%2F1273482808&quot; title=&quot;ファイルの書き込み、更新確認 - 初めてのシステムと日記&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>2010-05-12 18:13:28</published>
  <title>ファイルの書き込み、更新確認</title>
  <type>rich</type>
  <url>https://bosssato.hatenablog.com/entry/20100512/1273482808</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
