PHP Header untuk Ms Excel

Bagaimana cara mengenerate file .xls (Ms Excel) menggunakan bahasa pemrograman PHP

Rekan2 pernah coba membuat sebuah file di PHP yang bisa mengenerate  file .xls (Ms Excel)?
Berikut adalah header PHP untuk mengenerate file .xls tersebut.

header("Content-type: application/");
header("Content-Disposition: attachment; filename=namafile.xls");
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");

Letakkan script header tersebut didalam file php yang anda buat, letakkan script tersebut di baris paling atas script anda, sehingga ketika anda run file PHP tersebut akan menghasilkan file .xls

Selamat Mencoba !



Apache,4,Bisnis,1,Bisnis Online,1,Blog,10,Blogger,6,Cpanel,1,CSS,1,Database,3,Framework,1,Hacking,3,HTML,1,HTML and CSS,2,Info,2,Javascript,2,Javascript and AJAX,5,Keamanan Web,1,linux,2,Muslim,1,MySQL,3,Networking,1,Open GL,1,Optimasi Website,7,Pemrograman java,1,Pemrograman web,5,PHP,7,phpMyAdmin,1,SEO,4,SQL,2,SQL Injection,3,SQL Server,13,SQLMap,3,UMKM,2,Umroh,1,Website,1,Wordpress,4,Xampp,1,
Nanang Gunawan Blog: PHP Header untuk Ms Excel
PHP Header untuk Ms Excel
Bagaimana cara mengenerate file .xls (Ms Excel) menggunakan bahasa pemrograman PHP
Nanang Gunawan Blog
Loaded All Posts Not found any posts VIEW ALL Readmore Reply Cancel reply Delete By Home PAGES POSTS View All RECOMMENDED FOR YOU LABEL ARCHIVE SEARCH ALL POSTS Not found any post match with your request Back Home Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sun Mon Tue Wed Thu Fri Sat January February March April May June July August September October November December Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec just now 1 minute ago $$1$$ minutes ago 1 hour ago $$1$$ hours ago Yesterday $$1$$ days ago $$1$$ weeks ago more than 5 weeks ago Followers Follow THIS PREMIUM CONTENT IS LOCKED STEP 1: Share to a social network STEP 2: Click the link on your social network Copy All Code Select All Code All codes were copied to your clipboard Can not copy the codes / texts, please press [CTRL]+[C] (or CMD+C with Mac) to copy Table of Content