Mn cho e hỏi.E có đọạn code này nhưng sao file pdf thì không download được ạ.E cảm ơn.
<?php
$fname= $_GET['filename'];
$file=fopen('download/'.$fname, "rb");
header("Content-Type:application/octet-stream");
header("content-Disposition: attachment; filename=" .$fname);
fpassthru($file);
?>
83% thành viên diễn đàn không hỏi bài tập, còn bạn thì sao?