Codice PHP:
// ...
$target $target basename$_FILES['photo']['name']; 
// ... e la parentesi chiusa dov'e'? 
HTH
Zappa