PHP Kod:
header("Content-Type: application/force-download");
header("Content-Disposition: attachment; filename=$zipname");
header("Content-Length: " . filesize($zipname));
)

header("Content-Type: application/force-download");
header("Content-Disposition: attachment; filename=$zipname");
header("Content-Length: " . filesize($zipname));

, o kod servera dosya indiriyor. Bu kodu deneyiniz.<?php
$file = 'monkey.gif';
if (file_exists($file)) {
header('Content-Description: File Transfer');
header('Content-Type: application/octet-stream');
header('Content-Disposition: attachment; filename="'.basename($file).'"');
header('Expires: 0');
header('Cache-Control: must-revalidate');
header('Pragma: public');
header('Content-Length: ' . filesize($file));
readfile($file);
exit;
}
?>$link=$_GET['indir'];
$file = 'kutuphaneler/'.$link;
$zipname = "".$link.".rar";
if(!file_exists($zipname)){
$zip = new ZipArchive;
if($zip->open($zipname,ZipArchive::CREATE) === TRUE){
$zip->addFile($file,$link);
$zip->setArchiveComment("amxmodx-turkiye.com | Türkiyenin Ilk Pawn Kodu Paylaşım Platformu.");
$zip->close();
}
}
header("Content-Type: application/force-download");
header("Content-Disposition: attachment; filename=$zipname");
header("Content-Length: " . filesize($zipname));
readfile($zipname);
unlink($zipname);
exit;