
Untitled
By: a guest on
May 4th, 2012 | syntax:
None | size: 0.67 KB | hits: 13 | expires: Never
if (file_exists($f)) {
print 'size = '.filesize($f).'|';
//return;
header('Pragma: no-cache');
header('Expires: 0');
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
header('Last-Modified: '.gmdate('D, d M Y H:i:s', filemtime($f)).' GMT');
header('Content-Type: application/zip');
header('Content-Disposition: inline; filename="'.basename($f).'"');
//header('Content-Transfer-Encoding: binary');
header('Content-Length: '.filesize($f));
header('Connection: close');
readfile($f);
exit();
}