L'unica difficoltà è basename($file), poichè in asp non esiste una funzione che dia direttamente il nome del file, ma te la devi costruire tu...codice:<% ' Timeout di massimo tempo di esecuzione = 100 minuti server.settimeout(6000); ' Prevenire il 'caching' della risorsa response.addheader("Cache-Control: no-store, no-cache, must-revalidate"); response.addheader("Cache-Control: post-check=0, pre-check=0"); response.addheader("Pragma: no-cache"); ' NON USATO IN ASP if (get_magic_quotes_gpc()) $_GET['file'] = stripslashes($_GET['file']); file = server.mappath(request.querystring('file')); response.addheader("Content-Type: application/x-msdownload"); response.addheader("Content-Disposition: attachment; filename=" . basename($file)); 'NON NECESSARI 'response.addheader("Content-Length: " . filesize($file)); ' 'readfile($file); response.end ?>

Rispondi quotando