<?php
header('Content-Type: application/xls');
header('Content-Disposition: attachment; filename=info.xls');
echo "<table>\n";
echo "<tr><th>Folge 1</th><th>Folge 2</th></tr>\n";
for ($i = 0; $i < 20; $i++)
echo "<tr><td>" . rand() . "</td><td>" . rand() . "</td></tr>\n";
echo "</table>\n";
?>