Ragazzi ho trovato questo codice per il web:

codice:
<?PHP
    $filename = "sheet.xls";
    header ("Content-Type: application/vnd.ms-excel");
    header ("Content-Disposition: inline; filename=$filename");
?>
<table border="1">
<?PHP
    for ($i=1; $i<11; $i++)
    {
        echo "<tr>";
        for ($x=1; $x<11;$x++)
        {
            $r = $i * $x;
            echo "<td>$r</td>";
        }
        echo "</tr>";
    }
?>
</table>
però stavo pensando se lo uso e qualcuno non ha Ms Excel come fa?
Come posso risolvere il problema? Verificando magari se il computer avetta questo mime-types: header ("Content-Type: application/vnd.ms-excel");?