Aqui teneis la cosa funcionando por si le sirve de algo a alguien. Mil gracias! :
Código PHP:
<?php
ini_set('post_max_size','100M');
ini_set('upload_max_filesize','100M');
ini_set('max_execution_time','100000');
ini_set('max_input_time','100000');
if ($_POST["action"] == "upload") {
$tamano = $_FILES['archivo']['size'];
$tipo = $_FILES['archivo']['type'];
$archivo = $_FILES['archivo']['name'];
$destino= "/home/http/EXTRANET/projects/RAMAN/FILES/".$_FILES['archivo']['name'];
if ($archivo != "")
{
if (move_uploaded_file($_FILES['archivo']['tmp_name'],$destino))
{
echo "<br><br><br><br><P CLASS=Comentario ALIGN=CENTER>The file <b>".$archivo."</b> has been uploaded successfully" ;
chmod("$destino",0640);
} else
{
echo "<br><br><br><br><P CLASS=Comentario ALIGN=CENTER>An error has ocurred during the file upload. Try again! (Error type: ".$_FILES['archivo']['error'].")<br>";
}
} else
{
echo "<br><br><br><br><P CLASS=Comentario ALIGN=CENTER>Please, select a file to upload!</b>";
}
}
;
?>
<HTML>
<HEAD>
<TITLE></TITLE>
<LINK REL="stylesheet" HREF="estilo.css" TYPE="text/css">
</HEAD>
<BODY BACKGROUND="Imagenes/marte.jpg" BGPROPERTIES="fixed">
</BODY>
</HTML>