<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>papemk2</author_name>
  <author_url>https://blog.hatena.ne.jp/papemk2/</author_url>
  <blog_title>ごった煮</blog_title>
  <blog_url>https://papemk2.hateblo.jp/</blog_url>
  <categories>
  </categories>
  <description>とある事情で PHP を書く必要に迫られたのですが Windows 環境 + ビルトインサーバで環境変数を扱う方法を忘れていたのでメモとして残します やり方 よくある方法だと以下のような感じですよね Foo=Bar php localhost:8000 -t パス コマンドプロンプトや PowerShell で Foo=Bar ~ みたいなことは、出来ないですよね ということで普通に set コマンドを使って環境変数を指してあげましょう SET Foo=Bar php localhost:8000 -t パス Set コマンドは、使用したセッション中のみ有効な環境変数を設定してくれるコマンドで…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpapemk2.hateblo.jp%2Fentry%2F2020%2F08%2F17%2F183824&quot; title=&quot;Windows 環境の 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>2020-08-17 18:38:24</published>
  <title>Windows 環境の PHP でビルトインサーバを使用するときに環境変数をセットする方法</title>
  <type>rich</type>
  <url>https://papemk2.hateblo.jp/entry/2020/08/17/183824</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
