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.

<?php
header("Content-type: application/vnd.ms-excel");
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 !

COMMENTS

Name

Apache,4,Bisnis Online,1,Blog,1,Cpanel,1,CSS,1,Database,1,Framework,1,Hacking,3,HTML,1,HTML and CSS,2,Info,2,Javascript,2,Javascript and AJAX,5,Keamanan Web,1,linux,2,MySQL,3,Networking,1,Open GL,1,Optimasi Website,7,Pemrograman java,1,Pemrograman web,5,PHP,7,phpMyAdmin,1,SEO,4,SQL Injection,3,SQL Server,12,SQLMap,3,Website,1,Xampp,1,
ltr
item
Nanang Gunawan Blog: PHP Header untuk Ms Excel
PHP Header untuk Ms Excel
Bagaimana cara mengenerate file .xls (Ms Excel) menggunakan bahasa pemrograman PHP
https://3.bp.blogspot.com/-9-XmtdwA0mw/WONOX3sisDI/AAAAAAAAAt0/7bmtnrXzDlIHZfs-SlUuCso8mpUNG89QQCLcB/s1600/PHP%2BHeader%2Buntuk%2BMs%2BExcel.jpg
https://3.bp.blogspot.com/-9-XmtdwA0mw/WONOX3sisDI/AAAAAAAAAt0/7bmtnrXzDlIHZfs-SlUuCso8mpUNG89QQCLcB/s72-c/PHP%2BHeader%2Buntuk%2BMs%2BExcel.jpg
Nanang Gunawan Blog
http://www.nananggunawan.com/2012/02/php-header-untuk-ms-excel.html
http://www.nananggunawan.com/
http://www.nananggunawan.com/
http://www.nananggunawan.com/2012/02/php-header-untuk-ms-excel.html
true
4195327445586723627
UTF-8
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 CONTENT IS PREMIUM Please share to unlock 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