下载功能<?php
// 输出PDF文件
header('Content-type: application/pdf');// 设定文件名为:downloaded.pdf
header('Content-Disposition: attachment; filename="downloaded.pdf"');// 读取服务器文件。
readfile('original.pdf');
?>
// 输出PDF文件
header('Content-type: application/pdf');// 设定文件名为:downloaded.pdf
header('Content-Disposition: attachment; filename="downloaded.pdf"');// 读取服务器文件。
readfile('original.pdf');
?>
当然,也可以生成一个html,呵呵.
<?php
// 输出PDF文件
header('Content-type: application/pdf');// 设定文件名为:downloaded.pdf
header('Content-Disposition: attachment; filename="downloaded.pdf"');// 读取服务器文件。
readfile('original.pdf');
?>
这个hender里面为什么都要那么写..是什么意思???明天结贴
具体的,lz查一查http协议的相关内容