php header

<?phpheader("Content-type:application/pdf");
// 文件将被称为 downloaded.pdfheader("Content-Disposition:attachment;filename='downloaded.pdf'");
// PDF 源在 original.pdf 中readfile("download.pdf");?>
posted @ 2011-05-14 20:18  乐享Flash&PHP  阅读(181)  评论(0)    收藏  举报