<?php
header(‘Content-Length: ‘.$fileSize);
header(‘Content-Type: ‘.$mimeType);
header(‘Content-Disposition: attachment; filename=”‘.$fileName.’”‘);
header(‘Content-Transfer-Encoding: binary’);
header(‘Cache-Control: must-revalidate, post-check=0, pre-check=0′);
@readfile($path); ?>
Posted by: prajapatinilesh | December 13, 2007
Forcing a File Download
Posted in php



this files are work vary good.
By: vishal on December 18, 2007
at 12:56 pm