Revision: 133
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at June 30, 2006 13:41 by cochambre
Initial Code
function copiarArbol($source, $dest){ $folder = opendir($source); while($file = readdir($folder)){ if ($file == '.' || $file == '..') continue; if(is_dir($source.'/'.$file)){ if( !is_dir($dest.'/'.$file)) mkdir($dest.'/'.$file, 0666); copiarArbol($source.'/'.$file , $dest.'/'.$file); }else{ if(strrchr($file,'.') != '.db'){ copy($source.'/'.$file , $dest.'/'.$file ); chmod($dest.'/'.$file , 0666); } } } closedir($folder); return 1; }
Initial URL
Initial Description
Initial Title
Copiar un arbol de carpetas y archivos sin limite de niveles
Initial Tags
files, copy
Initial Language
PHP