note 57343 deleted from function.chmod by mazzanet

From: Date: Fri, 30 Sep 2005 20:47:26 +0000
Subject: note 57343 deleted from function.chmod by mazzanet
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-96099@lists.php.net to get a copy of this message
Note Submitter: info at maloii dot ru ---- function recursive chmod'ing. <?php function read_Dir($path, $chm) { $dirs=array(); $files=array(); @chmod($path, $chm); @$dir = opendir($path); while(@$file=readdir($dir)) { if($file!="."&& $file!="..") { @chmod($dirs[] = $path."/".$file, $chm); } } for($t=0; $t<count($dirs); $t++) { read_Dir($dirs[$t], $chm); } } @closedir($dir); read_Dir('dir', 0775); ?>

« previous php.notes (#96099) next »