Ver Mensaje Individual
  #51 (permalink)  
Antiguo 25/08/2009, 16:54
Avatar de yeudiel
yeudiel
 
Fecha de Ingreso: abril-2008
Ubicación: Ciudad de México
Mensajes: 78
Antigüedad: 16 años
Puntos: 1
Respuesta: APORTE: Subir imagen con php

if($tipo == "PNG" || $tipo == "png" || $tipo == "gif" || $tipo == "pjpeg" || $tipo == "bmp" || $tipo == "GIF" || $tipo == "JPG" || $tipo == "jpg" || $tipo == "JPEG" || $tipo == "jpeg"){ // Si el tipo de imagen a subir es el mismo de los permitidos, segimos. Puedes agregar mas tipos de imagen
move_uploaded_file ( $_FILES['file']['tmp_name'],$destino.'/'.$cad.'.jpg'); // Subimos el archivo
include('adminpcr.html'); // Incluimos la plantilla
}

aunque no entiendo por q la cambiaste el $tipo por .jpg

Última edición por yeudiel; 25/08/2009 a las 16:59 Razón: comentario