<?php
$SLT = "SLT.xls";
?>
if(!SLT_exists($SLT));
{
die('Error: File Not Found');
}
else
{
// Set headers
header("Cache-Control: public");
header("Content-Description: File Transfer");
header("Content-Disposition: attachment; filename=$SLT.xls");
header("Content-Type: application/zip");
header("Content-Transfer-Encoding: binary");
}
// Read the file from disk
readfile($SLT);
This post has been edited by BarNunBoi: 13 June 2012 - 07:20 AM

New Topic/Question
Reply




MultiQuote






|