"; echo "filepath. : $filepath
"; echo "file_path : $file_path
"; echo "file_name : $file_name
"; die; */ IF ($_SESSION['DOWNTRACE'] = 1) { $message = "Il file $filepath$filename stato scaricato.\n"; $message .= "dal seguente IP : $ip $host \n"; $message .= "in data $date \n"; $message .= "utilizzando $agent \n"; $headers = 'From: CALFASOFT ' . "\r\n" . 'Reply-To: noreply@calfasoft.eu' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); $subject = "DOWNLOAD : $filepath$filename"; mail('WEBMASTER ', $subject , $message, $headers ); } header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); header("Content-Type: application/force-download"); header("Content-Type: application/octet-stream"); header("Content-Disposition: attachment; filename=".$filename); header("Content-Description: Download scheda"); header("Content-Length: $dimensioni_file"); //$file_name="public/documents/".$filename; readfile($file_name); ?>