Tuesday, February 18, 2014

How To Download a PDF file From Server Using PHP

this Is Your Home Page

<Html>
<body>

<a href="download.php" >Download PDF</a>

</body>
</html>
 When You Click This link Then PDF FILE Automatically downloaded


this Is Download Page name As: download Php
<?php 

header("Content-type: application/pdf");

header("Content-disposition: attachment; filename=PBS_AMC_FOR_OLD_PC.pdf");

?>