Forse..
Codice PHP:
$_SERVER["SCRIPT_FILENAME"
?
O forse:
Codice PHP:
 $_SERVER['DOCUMENT_ROOT'].'foto/'.$_FILES['name'