<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nakinor</author_name>
  <author_url>https://blog.hatena.ne.jp/nakinor/</author_url>
  <blog_title>sci</blog_title>
  <blog_url>https://sci.hateblo.jp/</blog_url>
  <categories>
  </categories>
  <description>OSX には PHP が標準で装備されていることを知り実装してみた。スクリプトの実行だけならば Node.js のような感覚で使うことができるようだ。とりあえず Ruby のスクリプトを参考にしながら PHP でスクリプトを書いてみた。 環境変数の取得 まずは辞書の場所を得る。環境変数の取得には getenv(&quot;&quot;) を使う。文字列の連結には . が使え、Vim script や Lua っぽい感じがする。変数に $ が付くのは Perl っぽくて鬱。 ファイルの読み込み ファイルの読み込みは fopen() を使う。これを while の中で fgets() に渡して一行ずつ読み込んで処理す…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fsci.hateblo.jp%2Fentry%2Fmto_with_php&quot; title=&quot;mto を PHP で実装してみる - sci&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>http://cdn-ak.f.st-hatena.com/images/fotolife/n/nakinor/20160323/20160323202050.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2016-03-23 00:00:00</published>
  <title>mto を PHP で実装してみる</title>
  <type>rich</type>
  <url>https://sci.hateblo.jp/entry/mto_with_php</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
