Ver Mensaje Individual
  #5 (permalink)  
Antiguo 12/08/2006, 10:17
albert_sps
 
Fecha de Ingreso: diciembre-2003
Ubicación: San Pedro Sula
Mensajes: 165
Antigüedad: 20 años, 5 meses
Puntos: 0
FTP via Sockets

Porque no copy() ?
Antes de empezar a buscar esa clase crees que convenga?, este es mi script

Código PHP:

FtpMkdir
("httpdocs/cine/"$pelicula);    // Utiliza ftp_mkdir para crear$pelicula en "httpdocs/cine/", OK
    
FtpMkdir("httpdocs/cine/".$pelicula."/"'images');
    
FtpMkdir("httpdocs/cine/".$pelicula."/"'thumbs');
    
    
// AQUI DESEO SUBIR MULTIPLES ARCHIVOS AL FOLDER '$pelicula/images' creado anteriormente, falla
        
while(   list($key,$value) = each($HTTP_POST_FILES['img_file']['name'])   )
        {
            if(!empty(
$value))
            {         
$filename $value;    // filename stores the value        
                    
$add 'cine/'.$pelicula.'/images/'.$filename;
                    
$fuente $HTTP_POST_FILES['img_file']['tmp_name'][$key];
                    if (   
is_uploaded_file($HTTP_POST_FILES['img_file']['tmp_name'][$key])   ) 
                    {
                                if (!
move_uploaded_file($fuente$add)) 
                                     echo 
"---NO SE COPIO EL ARCHIVO---".$HTTP_POST_FILES['img_file']['name'][$key];  
                    }
                    else
                    {
                        echo 
"NOTE : No uploades File!!!";
                    }
            }
        }
    

     
    if (!
copy("cine/viewer.swf""cine/".$pelicula."/viewer.swf" ))
        echo 
"\n\nNO SE COPIO EL ARCHIVO VIEWER!";
        
    if (!
copy("cine/swfobject.js""cine/".$pelicula."/swfobject.js" ))
        echo 
"\n\nNO SE COPIO EL ARCHIVO SWFOBJECT!";
        
    if (!
copy("cine/film.php""cine/".$pelicula."/film.php" ))
        echo 
"\n\nNO SE COPIO EL ARCHIVO FILM!"
__________________
J. Alberto Montoya
------------------

Última edición por albert_sps; 12/08/2006 a las 15:22 Razón: Sintesis del codigo