<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>comeonly</author_name>
  <author_url>https://blog.hatena.ne.jp/comeonly/</author_url>
  <blog_title>Digitarhythm</blog_title>
  <blog_url>https://comeonly.hatenablog.com/</blog_url>
  <categories>
    <anon>PHP</anon>
    <anon>パーミッション</anon>
  </categories>
  <description>PHPにももちろんパーミッションを変更する関数はある*1。ところがこれでエラーになる場合がある。 PHPのchmodでエラーになる場合 &lt;?php // パーミッションを0666へ変更する。 chmod ('hoge/hoge.php', 0666); // ところが以下のようなエラーになる場合がある。 //Operation not permitted ?&gt; 原因は実行する側の権限の問題。いろいろ調べた結果、systemという関数を使用した*2。スマートではないけどレンタルサーバーでSSHアクセス出来ない場合はこれしか方法がないのかなぁ、という感じ。 対策方法 &lt;?php // 使用している…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcomeonly.hatenablog.com%2Fentry%2F20110128%2F1296191666&quot; title=&quot;chmodでパーミッション変更できない場合 - Digitarhythm&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>2011-01-28 14:14:26</published>
  <title>chmodでパーミッション変更できない場合</title>
  <type>rich</type>
  <url>https://comeonly.hatenablog.com/entry/20110128/1296191666</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
