hola ..
podes probar con esto.
Código PHP:
<form action="subearchivo.php" method="post" enctype="multipart/form-data">
<b>Enviar un nuevo archivo: </b>
<br>
<input name="userfile" type="file">
<br>
<input type="submit" value="Enviar">
</form>
suberarchivo.php
Código PHP:
$nombre_archivo = $HTTP_POST_FILES['userfile']['name'];
$tipo_archivo = $HTTP_POST_FILES['userfile']['type'];
$tamano_archivo = $HTTP_POST_FILES['userfile']['size'];
if (move_uploaded_file($HTTP_POST_FILES['userfile']['tmp_name'], $nombre_archivo)){
echo "<h3>El archivo ha sido cargado correctamente.</h3>";
}else{
echo "<h3>Ocurrió algún error al subir el fichero. No pudo guardarse.</h3>";
}
espero que te sirva...
despues date una vuelta por aca ..
http://www.forosdelweb.com/showpost....39&postcount=1
saludos!!!!