это мой код:
пользователь нажимает на ссылку для скачивания (jquery):
Код: Выделить всё
$(document).on('click','.downfile',function(e){
e.preventDefault();
var reqfile=$(this).next().val();
$.post('php/downloadfile.php',{
reqfile:reqfile
},function(data){});
});
Итак, первая часть:
Код: Выделить всё
Код: Выделить всё
Подробнее здесь: [url]https://stackoverflow.com/questions/79088581/php-readfile-problem-on-download-content-i-read-all-related-posts-before-send[/url]