RemoveHandler .html .htm
AddType application/x-httpd-php .php .htm .html
Или так:<FilesMatch "\.html$">
ForceType application/x-httpd-php
</FilesMatch>
<?
include_once('total-counter.php'); //там мы зададим переменную $total
?>
<div>Общее количество: <?=$total?></div>
echo "" . $i .", ";
echo $i.($i<10?', ':'');
while ($i<=9) echo 1+$i++.($i<10?',':'');
// заставляем браузер показать окно сохранения файла
header('Content-Description: File Transfer');
header('Content-Type: application/octet-stream');
header('Content-Disposition: attachment; filename=' . basename($savefile));
header('Content-Transfer-Encoding: binary');
header('Expires: 0');
header('Cache-Control: must-revalidate');
header('Pragma: public');
header('Content-Length: ' . filesize($file));