Igor Yalovecky
August 19th, 2010, 10:50 AM
<?
$mime = mime_content_type($path);
header('Content-type: ' . $mime);
readfile($path);
?>
All goes right except if it file must be downloaded then it downladed with name of my php file. Can i say to browser another name?
$mime = mime_content_type($path);
header('Content-type: ' . $mime);
readfile($path);
?>
All goes right except if it file must be downloaded then it downladed with name of my php file. Can i say to browser another name?