Is it possible to export a table from a site to an excel document? But with the new format, I've seen codes similar to this:
<?php
header('Content-type: application/vnd.ms-excel');
header("Content-Disposition: attachment; filename=InformeVentas.xls");
?>
But I have tried it and it exports to the excel format 97-2003. Is there any way to make it with the new (. Xlsx) format but without using libraries such as PHPExcel or PHPSpreadSheet, only using the php code.