Ver Mensaje Individual
  #8 (permalink)  
Antiguo 02/03/2004, 14:39
hYuNkEl
 
Fecha de Ingreso: diciembre-2003
Mensajes: 65
Antigüedad: 20 años, 4 meses
Puntos: 1
Es muy facil subir archivos seria asi

Código PHP:
<?
if ($_POST["subir"]) {
$ext explode(".",$archivo_name);
if (
$ext[1] == "zip"){
if (
$archivo_size 30000) {
copy($archivo,"Carpeta donde va a ir/".$archivo_name); //Tambien se puede usar move_uploaded_file();
}else{
echo 
"Archivo superior a 30kb";
}
}else{
echo 
"Solo archivos zip";
}
}
?>

<form name="uploader" method="post" action="<?$PHP_SELF?>" enctype="multipart/form-data">
<input type="file" name="archivo">&nbsp;
<input type="submit" name="subir">
</form>