advanced code snippet search
rickygri on 02/23/12
1 person have marked this snippet as a favorite
Force downloadable file with php
<?php //Link to download file with <a href="download.php" target="_blank">Download</a> header('Content-disposition: attachment; filename=huge_document.pdf');header('Content-type: application/pdf');readfile('huge_document.pdf');?>
Report this snippet
You need to login to post a comment.