Welcome aboard! We are happy you are here and wish you good net-raft!
<?php
// create text.xls file on the server
$file = "test.xls"; // your path to xls file
header('Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet');
header('Content-Disposition: attachment; filename='.$file);
$content = "\tTechnology\tSide\t\n";
$content .= "1\tphp\tserver\t\n";
$content .= "2\tnodejs\tserver\t\n";
$content .= "3\tjavascript\tclient\t\n";
echo $content;
?>
The most helpful PHP solutions