file_download.php
368 Bytes
<?php
$file = "/home/10.4.105.141/application/public/SMS.log";
@readfile($file);
header('Content-disposition: attachment; filename="'.exec("tar -cvf 10.5.105.141.tar.gz2 $file").'"');
header("Content-Type: application/octet-stream");
header('Content-Transfer-Encoding: binary');
header('Cache-Control: must-revalidate');
header('Pragma: public');
?>