<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Comments on snippet: 'Recursive chmod in PHP'</title>
    <description>Snipplr comments feed</description>
    <link>https://ipv6.snipplr.com/</link>
    <lastBuildDate>Thu, 23 Apr 2026 00:15:39 +0000</lastBuildDate>
    <item>
      <title>madc said on 06/Nov/2011</title>
      <link>https://ipv6.snipplr.com/view/5350/recursive-chmod-in-php</link>
      <description>&lt;p&gt;It works, if the script is allowed to read the content of a directory. If not, it can not read and therefor change the permissions of a file/dir in it.&#13;
I solved the problem by moving chmod before scandir (see http://snipplr.com/view/60573/recursive-chmod-in-php/). Also, I cleaned the snippet up a little bit.&#13;
&#13;
so long.&#13;
/m&lt;/p&gt;</description>
      <pubDate>Sun, 06 Nov 2011 08:10:48 UTC</pubDate>
      <guid>https://ipv6.snipplr.com/view/5350/recursive-chmod-in-php</guid>
    </item>
    <item>
      <title>Arnett said on 29/Jan/2020</title>
      <link>https://ipv6.snipplr.com/view/5350/recursive-chmod-in-php</link>
      <description>&lt;p&gt;function chmod_R($path, $filemode) {
if ( ! is_dir($path) ) {
return chmod($path, $filemode);
}
$dh = opendir($path);
while ( $file = readdir($dh) ) {
if ( $file != '.' ...
$fullpath = $path.
&lt;a href="https://www.myprepaidcenter.pro"&gt;MyPrepaidCenter&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Wed, 29 Jan 2020 05:21:43 UTC</pubDate>
      <guid>https://ipv6.snipplr.com/view/5350/recursive-chmod-in-php</guid>
    </item>
  </channel>
</rss>
