Ver Mensaje Individual
  #6 (permalink)  
Antiguo 09/07/2011, 17:46
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 18 años
Puntos: 2135
Respuesta: script php para copiar carpeta (no funka)

En el manual viene un ejemplo sencillo, lo haz intentado?
Código PHP:
Ver original
  1. function rcopy($src, $dst) {
  2.   if (file_exists($dst)) rrmdir($dst);
  3.   if (is_dir($src)) {
  4.     mkdir($dst);
  5.     $files = scandir($src);
  6.     foreach ($files as $file)
  7.     if ($file != "." && $file != "..") rcopy("$src/$file", "$dst/$file");
  8.   }
  9.   else if (file_exists($src)) copy($src, $dst);
  10. }