Code: Select all
<?
header("Content-type: application/vnd.ms-excel");
header("Content-type: text/html; charset=iso-8859-1; application/x-msdownload\r\n");
header("Content-Disposition: attachment; filename=extraction.xls");
header("Pragma: no-cache");
header("Expires: 0");
$data = "hello\tworld";
print $data;
?>regards,