<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shangtian</author_name>
  <author_url>https://blog.hatena.ne.jp/shangtian/</author_url>
  <blog_title>shangtian’s blog</blog_title>
  <blog_url>https://www.shangtian.tokyo/</blog_url>
  <categories>
    <anon>PHP</anon>
  </categories>
  <description>はじめに exec shel_exec system passthru &lt;参考文献&gt; はじめに phpでコマンドを実行する方法を紹介します。 exec コマンドの出力がある場合$outputにコマンドの出力が 代入される。 exec('コマンド',$output); lsコマンドで試してみる。 &lt;?php exec('ls' ,$tmp); var_dump($tmp); echo &quot;\n&quot;; ?&gt; shel_exec コマンドの実行し、実行結果を文字列として出力する。 &lt;?php $output = shell_exec('ls'); echo $output; ?&gt; system このコマ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.shangtian.tokyo%2Fentry%2F2019%2F02%2F11%2F100035&quot; title=&quot;phpでコマンドを実行する - shangtian’s blog&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>https://cdn-ak.f.st-hatena.com/images/fotolife/s/shangtian/20190211/20190211084652.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-02-11 10:00:35</published>
  <title>phpでコマンドを実行する</title>
  <type>rich</type>
  <url>https://www.shangtian.tokyo/entry/2019/02/11/100035</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
