<?php

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

 header('Content-Disposition: attachment; filename="down.pdf"');

 readfile("읽어들일 경로와 파일명");

?>



Content-type 종류

  • Type vnd: Vendor Specific Files
  • Type x-pkcs: PKCS standard files
    • application/x-pkcs12: p12 files
    • application/x-pkcs12: pfx files
    • application/x-pkcs7-certificates: p7b files
    • application/x-pkcs7-certificates: spc files
    • application/x-pkcs7-certreqresp: p7r files
    • application/x-pkcs7-mime: p7c files
    • application/x-pkcs7-mime: p7m files
    • application/x-pkcs7-signature: p7s files

출처: http://en.wikipedia.org/wiki/Internet_media_type