Forum Moderators: coopster
header('Content-Description: File Transfer');
header('Content-Type: application/win-rar'); // Set the Content Type for 'application/octet-stream' (binary file) or change it based on your specific file type
header("Content-Disposition: attachment; filename={$targetFile}");
readfile($targetFile);
exit;