I have compeleted with the extracting of .xls file using the below code
header("Pragma: public");
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Content-Type: application/force-download");
header("Content-Disposition: attachment; filename=".$_REQUEST['file_name']);
header("Content-Type: application/vnd.ms-excel");
echo '<table>';
echo $text = $_REQUEST['tbodyContent'];
echo "</table>";
where $_REQUEST['tbodyContent'] is the content of table coming through post
the above code is working file but the output report is in xls format but I want to extract it in .xlsx format
How it is possibl any idea ?