php下载文件

header('content-disposition:attachment;filename='.basename($filename));

header('content-length:'.filesize($filename));

readfile($filename);


你可能感兴趣的:(下载文件)