<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>deloreanmc12</author_name>
  <author_url>https://blog.hatena.ne.jp/deloreanmc12/</author_url>
  <blog_title>3流プログラマのメモ書き</blog_title>
  <blog_url>https://3ryupg.hatenablog.com/</blog_url>
  <categories>
    <anon>PHP開発</anon>
  </categories>
  <description>PHPで共通に使う外部ファイルを読み込ませたい時、絶対パス指定で require_once をする時が多いと思います。 (ディレクトリ階層が異なる場合や、インクルード先からさらに別ファイルをインクルードしている場合には絶対パスの方が無用なトラブルを避けれるので。。) しかし、本番環境とローカルの開発環境では絶対パスが異なることが多々有ります。 いちいち各PHP内のファイルを本番にアップする前に置換したりするのは非常に手間です。 で、いい方法はないか探していると、include_path：とことん!ホームページに役立つ方法が。。。 そういう時に以下にようなスクリプトを各PHPの最初に実行するよう…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2F3ryupg.hatenablog.com%2Fentry%2F2012%2F05%2F13%2F212700&quot; title=&quot;(PHP)include_pathを本番環境、開発環境で切り替える - 3流プログラマのメモ書き&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>2012-05-13 21:27:00</published>
  <title>(PHP)include_pathを本番環境、開発環境で切り替える</title>
  <type>rich</type>
  <url>https://3ryupg.hatenablog.com/entry/2012/05/13/212700</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
