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

Nama

Apache,4,Bisnis,1,Bisnis Online,1,Blog,10,Blogger,6,Cpanel,1,CSS,1,Database,4,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,12,Networking,1,Open GL,1,Optimasi Website,7,Pemrograman java,1,Pemrograman web,7,PHP,9,phpMyAdmin,2,PosgreSql,7,SEO,4,SQL,11,SQL Injection,3,SQL Server,19,SQLMap,3,UMKM,2,Umroh,1,Website,1,Wordpress,4,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://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgdPGNk88_cqUZUDsV-APIu0yy7vPfX-NyKgMpBdAjoVlroIeBtXfK345azki1bzJjKICayENE98xvyYsHG8f_F_egfNwYYM0jtT3CXLAdBzQ9JbFpkfwgbLU-fX7u0XZCNhD4BeJFsAvY/s1600/PHP+Header+untuk+Ms+Excel.jpg
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgdPGNk88_cqUZUDsV-APIu0yy7vPfX-NyKgMpBdAjoVlroIeBtXfK345azki1bzJjKICayENE98xvyYsHG8f_F_egfNwYYM0jtT3CXLAdBzQ9JbFpkfwgbLU-fX7u0XZCNhD4BeJFsAvY/s72-c/PHP+Header+untuk+Ms+Excel.jpg
Nanang Gunawan Blog
https://www.nananggunawan.com/2012/02/php-header-untuk-ms-excel.html
https://www.nananggunawan.com/
https://www.nananggunawan.com/
https://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 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