А. А. Орлов. РНР полезные приемы |
Страница 178 из 178 $hdl=opendir($rt."/".$fId); while ($file = readdir($hdl)) { if ( ($file! = "..")&&($file! = w.")) { if (is_dir{$rt."/".$fId."/".$file)==True) { copyfold($rt."/".$fld, $file. $tgt.-/•-$fId); ) else { copy ($rt."/".$fId."/".$file, $tgt."/".$fId."/".$file); > } } closedir($hdl); ) if ($copy I =11") { foreach ($fl as $i) { if (is_dir{$folder." /". $i) ==*True) { if (I(strpos ($rd, $folder."/".$i)===0)) { copyfold($folder, $i, $rd); } } else { copy ($folder."/".$i, $rd."/".$i); } } > if ($md!="") { $newname=$folder ."/*'. strtr ($newname, • t]{},/\!@#$%л&*", "_") ; mkdir ($newname, 0666); } Header {"Location:index.php?fоld=$folder"); ?> |