Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $file='tes.xls';
- header('Content-disposition: attachment; filename='.$file);
- header('Content-type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet');
- header('Content-Length: ' . filesize($file));
- header('Content-Transfer-Encoding: binary');
- header('Cache-Control: must-revalidate');
- header('Pragma: public');
- ?>
- <!--
- /**
- ##INFO##
- {"title":"excel dari HTML ","detail":"membuat excel menggunakan HTML "}
- ##INFO##
- **/
- -->
- <?php
- ob_clean();
- flush();
- ob_start();
- include('excel001/001.php');
- $s2 = ob_get_contents();
- echo $s2;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement