Ver Mensaje Individual
  #3 (permalink)  
Antiguo 26/04/2003, 22:57
Avatar de sdf23
sdf23
 
Fecha de Ingreso: diciembre-2002
Mensajes: 297
Antigüedad: 21 años, 4 meses
Puntos: 0
mira un script que encontre
Código PHP:
function rec_copy ($from_path$to_path) { 
mkdir($to_path0777); 
$this_path getcwd(); 
if (
is_dir($from_path)) { 
chdir($from_path); 
$handle=opendir('.'); 
while ((
$file readdir($handle))!==false) { 
if ((
$file != ".") && ($file != "..")) { 
if (
is_dir($file)) { 

rec_copy ($from_path.$file."/"$to_path.$file."/"); 
chdir($from_path); 

if (
is_file($file)){ 
copy($from_path.$file$to_path.$file); 



closedir($handle); 


__________________

la vida es bella cuando no es culera