Tuesday, 7 January 2014

Code For Download PDF format Using PHP

How to Download PDF Using PHP ( dr-wordpress.blogspot.com )

  1. Upload the file you want to make available for download to your web server. For example,
  2. Edit a new PHP file in your web editor. For example:
  3. <?php
    header("Content-disposition: attachment; filename=dr-wordpress.pdf");
    header("Content-type: application/pdf");
  4. Link to your PHP file as a download link. For example:
    <a href="huge_document.php">Download dr-wordpress (PDF) File</a>

    Subscribe Dr-Wordpress for Important Knowledge of wordpress..your's suggestions are most welcomed.

No comments:

Post a Comment