Forma
<html>
<head>
</head>
<body>
<form action="alta_archivo.php" method="POST" enctype="multipart/form-data">
<table width="50%" align="center" cellpadding="3" border="1">
<tr>
<td width="20%">PDF: </td>
<td><input type="file" name="archivo" size="50"></td>
</tr>
<tr align="center">
<td colspan="2"><input type="submit" value="Guardar"></td>
</tr>
</table>
</form>
</body>
</html>
alta_archivo.php
<?php
$archivo_name= $HTTP_POST_FILES['archivo']['name'];
$archivo_size= $HTTP_POST_FILES['archivo']['size'];
$archivo_type= $HTTP_POST_FILES['archivo']['type'];
$archivo= $HTTP_POST_FILES['archivo']['tmp_name'];
if($archivo !="")
{
if(file_exists($archivo_name)!=1)
{
//$archivo_name="demo/".basename($archivo).".000";
copy($archivo, "micarpeta/".$archivo_name);
}
else
{
echo "Lo sentimos pero existe otro archivo con el mismo nombre";
}
}
else
{
$archivo_name="";
}
?>