In this article you will see how to give download link in PHP to download a file from server. Giving a download link is very easy if you are using HTML5. In HTML5, we just need to add a download attribute in anchor tag with giving file source as href. This steps will create a download link either in html or PHP extension page. Website visitors can easily download given file source by clicking on link.
in html5 <!Doctype>
Download pdf
it will display as