Salve a tutti,

è un argomento trattato in molti forum e ho già visitato varie pagine sul web senza riuscire a risolvere il problema.
Gli script sono i seguenti sia per l'html che per il PHP.
Non riesco a far funzionare questo "maledetto move_uploaded_file". Ho settato con chmod sia la cartella temporanea che quella di destinazione. Ho provato a settare register_globals a ON.
Insomma, non capisco perchè non vada.

codice:
<html> 
<body>  		
<form enctype="multipart/form-data" action="uploader.php" method="POST"> 			

<input type="hidden" name="MAX_FILE_SIZE" value="10000000" /> 		
	Choose a file to upload: 

<input name="uploadedfile" type="file" />
	 			
<input type="submit" value="Upload File" /> 		
</form> 	
</body> 
</html>
Codice PHP:
$target_path "/var/www/examples/prova/";          

$target_path $target_path basename$_FILES['uploadedfile']['name']);  

if(
move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)) {                     

 echo 
"The file ".  basename$_FILES['uploadedfile']['name'])." has been uploaded"
    
} else{              

echo 
"There was an error uploading the file, please try again!";     


Qualcuno gentilmente mi può aiutare ? Sono veramente alle prime armi con il PHP
Grazie in anticipo

mirror XV