
04.03.2010, 17:37
|
|
Динозавр
Регистрация: 10.01.2008
Сообщений: 2,841
С нами:
9649706
Репутация:
3338
|
|
в теме уже был правильный ответ от Deathdreams:
PHP код:
<?
$file = 'http://bug-track.ru/prog/toolza1.0.rar';
header('Content-length: ' . $filesize);
header('Content-Disposition: attachment; filename=' . basename($file));
header('Content-Type: application/rar; name="' . basename($file) . '"');
echo file_get_contents($file);
?>
|
|
|