How to make an Excel File from PHP


When I was searched about convertion, HTML to EXCEL, PHP can do it. Just add this simple code :



<?php

header("Content-type: application/vnd.ms-excel");
header("Content-Disposition: attachment; filename=$FileName");

?>

just rename $FileName with your file name.

Hope it will make a benefit for you all....

Just Comment, if there is a mistake in my code.

Thank you all...

Komentar

Postingan populer dari blog ini

10 Alasan Memakai Framework PHP

cURL - perkenalan curl (part 1)