Perdon no vi el tema aqui dejo el código con 1 mb pa subir:
Este seria el formulario al que le llame subir.html
<form action="./subir_archivos.php" method="post" enctype="multipart/form-data">
<p>
<label for="file">Selecione el archivo:<br></label> <input type="file" name="userfile" id="file"><button>Subir</button>
<p>
</form>
Y este es el subir_archivos.php
<?php
$allowed_filetypes = array('.jpg','.gif','.bmp','.png');
$max_filesize = 1048576; // Maximum filesize in BYTES (currently 1 MB).
$upload_path = './archivos/';
$filename = $_FILES['userfile']['name'];
$ext = substr($filename, strpos($filename,'.'), strlen($filename)-1);
if(!in_array($ext,$allowed_filetypes))
die('The file you attempted to upload is not allowed.');
if(filesize($_FILES['userfile']['tmp_name']) > $max_filesize)
die('The file you attempted to upload is too large.');
if(!is_writable($upload_path))
die('You cannot upload to the specified directory, please CHMOD it to 777.');
if(move_uploaded_file($_FILES['userfile']['tmp_name'],$upload_path . $filename)) {
echo 'Su archivo se a subido perfectamente, puede verlo <a href="' . $upload_path . $filename . '" title="Your File">aqui</a>';
chmod($upload_path . $filename, 0777);
} else {
echo 'There was an error during the file upload. Please try again.';
}
?>
Nota: Dentro de poco pondre un tema con temas que me han ayudado y que lo veo utiles. No tardare mucho en publicarlo.
Y dentro de unos meses un tuto de como hacer una pagina web html desde 0.
Saludos xD