sunucumdaki bir dosyayı indirtmeye çalışıyorum ancak sürekli olarak bu hatayı alıyorum, dosya adı vs. başarıyla geliyor ancak dosya açılmıyor. Sizce hatam nerede?
if(isset($sepetkontrolcek['sepet_id'])){ 
    $pdf = $ebookcek['ebook_file'];

  $file_url = "$url/assets$pdf";

header('Content-Description: File Transfer');
header('Content-Type: application/octet-stream');
header("Content-Disposition: attachment; filename=$slug.pdf");
header('Expires: 0');
header('Cache-Control: must-revalidate');
header('Pragma: public');
readfile($file_url);

}
}