![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
27/01/2005, 07:03
|
| | Fecha de Ingreso: enero-2005
Mensajes: 33
Antigüedad: 20 años Puntos: 0 | |
Codigo Oki aca va jejeje:
Tengo un archivo subir.html que tiene:
<html>
<head>
<Title> Sube tus archivos aqui </title>
</head>
<form enctype="multipart/form-data" action="subir.php" method="POST">
<input type="hidden" name="MAX_FILE_SIZE" value="11534336">
Send this file: <input name="userfile" type="file">
<input type="submit" value="Send File">
</form>
</BODY>
</HTML>
Y uno que es subir.php que tiene:
<?php
// In PHP earlier then 4.1.0, $HTTP_POST_FILES should be used instead of
// $_FILES. In PHP earlier then 4.0.3, use copy() and is_uploaded_file()
// instead of move_uploaded_file
$uploaddir = "1/";
$uploadfile = $uploaddir. $_FILES['userfile']['name'];
echo "holaaa:".$_FILES['userfile']['tmp_name'];
copy($_FILES['userfile']['tmp_name'], $uploadfile) ;
//$tamaño = filesize($uploadfile);
?>
Bueno... espero algun dia encontrar la solucion, pues es re importante poder subir archivos de hasta 10 M, en mi caso. |