<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>magiwo</author_name>
  <author_url>https://blog.hatena.ne.jp/magiwo/</author_url>
  <blog_title>過去と他人はかえられないが、未来と自分はかえられる</blog_title>
  <blog_url>https://magiwo.hatenadiary.org/</blog_url>
  <categories>
  </categories>
  <description>PHPにカレントディレクトリを調べる方法がいくつがありますが、WindowsとUnixではどうやら挙動が違うようです。 test.php echo &quot;realpath: &quot;.realpath(&quot;.&quot;).&quot;\n&quot;; echo &quot;getcwd: &quot;.getcwd ().&quot;\n&quot;; echo &quot;env@pwd: &quot;.$_ENV['PWD'].&quot;\n&quot;; Windowsの場合 現在いるディレクトリ C:\work 実行するコマンド C:\php\php.exe 実行するファイル C:\php\test.php 結果 realpath: C:\work getcwd: C:\work env@pwd: …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmagiwo.hatenadiary.org%2Fentry%2F20061207&quot; title=&quot;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>2006-12-07 00:00:00</published>
  <title>PHP カレントディレクトリという名の罠</title>
  <type>rich</type>
  <url>https://magiwo.hatenadiary.org/entry/20061207</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
