codice:
$data_flyer = '010104/nome_file.jpg';

$upload_dir = "http://".$_SERVER['SERVER_ADDR'] ."/flyer/$data_flyer/";