Ver Mensaje Individual
  #5 (permalink)  
Antiguo 17/07/2011, 18:01
privatefta
(Desactivado)
 
Fecha de Ingreso: septiembre-2010
Mensajes: 498
Antigüedad: 13 años, 7 meses
Puntos: 5
Respuesta: problema al crear un directrio

Cita:
Iniciado por duskrow Ver Mensaje
Código PHP:

         
function mover_archivo()
         {
             
// Ruta del archivo
             
$path "recursos/{$this->tipo}/{$this->last_id}/";
           echo 
$path;

                    if( !
file_exists("recursos"){ mkdir("recursos",0777); }
                    if( !
file_exists("recursos/" $this->tipo){ mkdir("recursos" $this->tipo ,0777); }


             
// Crear el directorio
             
if( !file_exists$path ) ) mkdir($path,0777);
          
            
//mover el archivo
            
return move_uploaded_file($this->tn$path.$this->n);
         } 
son dos carpetas que el genera