{"id":995,"date":"2014-09-01T06:49:17","date_gmt":"2014-09-01T06:49:17","guid":{"rendered":"http:\/\/www.webhozz.com\/blog\/?p=995"},"modified":"2019-07-03T13:44:58","modified_gmt":"2019-07-03T13:44:58","slug":"menyimpan-laporan-dari-php-ke-ms-excel","status":"publish","type":"post","link":"https:\/\/www.webhozz.com\/blog\/menyimpan-laporan-dari-php-ke-ms-excel\/","title":{"rendered":"Menyimpan Laporan dari PHP ke Ms Excel"},"content":{"rendered":"<p><a href=\"http:\/\/www.webhozz.com\/blog\/wp-content\/uploads\/2014\/09\/excelms.jpg\"><img fetchpriority=\"high\" decoding=\"async\" class=\"size-large wp-image-996 aligncenter\" src=\"http:\/\/www.webhozz.com\/blog\/wp-content\/uploads\/2014\/09\/excelms-1024x568.jpg\" alt=\"excelms\" width=\"620\" height=\"343\" srcset=\"https:\/\/www.webhozz.com\/blog\/wp-content\/uploads\/2014\/09\/excelms-1024x568.jpg 1024w, https:\/\/www.webhozz.com\/blog\/wp-content\/uploads\/2014\/09\/excelms-300x166.jpg 300w, https:\/\/www.webhozz.com\/blog\/wp-content\/uploads\/2014\/09\/excelms.jpg 1133w\" sizes=\"(max-width: 620px) 100vw, 620px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p>Untuk menyimpan atau mencetak data dari PHP kebentuk CSV (Ms Excel), Sangatlah mudah. Anda cukup membuat satu file php , misalkan cetak.php.. lalu ketikkan kode dibawah ini dibagian paling atas :<\/p>\n<p><!--more--><\/p>\n<pre class=\"brush: xml; title: ; notranslate\" title=\"\">\r\n&lt;?php\r\nheader(&quot;Content-type: application\/octet-stream&quot;);\r\nheader(&quot;Content-Disposition: attachment; filename=laporan.xls&quot;);\/\/ganti nama sesuai keperluan\r\nheader(&quot;Pragma: no-cache&quot;);\r\nheader(&quot;Expires: 0&quot;);\r\n\/\/disini script laporan anda\r\n?&gt;\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p>Lalu dibawahnya isikan kode untuk menampilkan data laporan. Selengkapnya silahkan download sourcecode-nya <a href=\"https:\/\/www.dropbox.com\/s\/5nvu8djmcu49dqk\/cetak.php?dl=0\">DISINI<\/a>.<\/p>\n<p>Selamat Mencoba.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; Untuk menyimpan atau mencetak data dari PHP kebentuk CSV (Ms Excel), Sangatlah mudah. Anda cukup membuat satu file php , misalkan cetak.php.. lalu ketikkan<\/p>\n","protected":false},"author":9,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[16,35,338,339,126,340,192],"class_list":["post-995","post","type-post","status-publish","format-standard","hentry","category-belajar-web-programming","tag-belajar-php","tag-belajar-web-programming-2","tag-convert","tag-convert-php-ke-excel","tag-php","tag-php-belajar","tag-php-to-excel"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Menyimpan Laporan dari PHP ke Ms Excel - WebHozz Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.webhozz.com\/blog\/menyimpan-laporan-dari-php-ke-ms-excel\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Menyimpan Laporan dari PHP ke Ms Excel - WebHozz Blog\" \/>\n<meta property=\"og:description\" content=\"&nbsp; Untuk menyimpan atau mencetak data dari PHP kebentuk CSV (Ms Excel), Sangatlah mudah. Anda cukup membuat satu file php , misalkan cetak.php.. lalu ketikkan\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.webhozz.com\/blog\/menyimpan-laporan-dari-php-ke-ms-excel\/\" \/>\n<meta property=\"og:site_name\" content=\"WebHozz Blog\" \/>\n<meta property=\"article:published_time\" content=\"2014-09-01T06:49:17+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-07-03T13:44:58+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.webhozz.com\/blog\/wp-content\/uploads\/2014\/09\/excelms.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1133\" \/>\n\t<meta property=\"og:image:height\" content=\"629\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/menyimpan-laporan-dari-php-ke-ms-excel\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/menyimpan-laporan-dari-php-ke-ms-excel\\\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/#\\\/schema\\\/person\\\/ad1c5822a60b5b228c5ceda20e439fea\"},\"headline\":\"Menyimpan Laporan dari PHP ke Ms Excel\",\"datePublished\":\"2014-09-01T06:49:17+00:00\",\"dateModified\":\"2019-07-03T13:44:58+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/menyimpan-laporan-dari-php-ke-ms-excel\\\/\"},\"wordCount\":90,\"publisher\":{\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/menyimpan-laporan-dari-php-ke-ms-excel\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/www.webhozz.com\\\/blog\\\/wp-content\\\/uploads\\\/2014\\\/09\\\/excelms-1024x568.jpg\",\"keywords\":[\"Belajar PHP\",\"belajar web programming\",\"convert\",\"convert php ke excel\",\"php\",\"php belajar\",\"php to excel\"],\"articleSection\":[\"Belajar Web Programming\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/menyimpan-laporan-dari-php-ke-ms-excel\\\/\",\"url\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/menyimpan-laporan-dari-php-ke-ms-excel\\\/\",\"name\":\"Menyimpan Laporan dari PHP ke Ms Excel - WebHozz Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/menyimpan-laporan-dari-php-ke-ms-excel\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/menyimpan-laporan-dari-php-ke-ms-excel\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/www.webhozz.com\\\/blog\\\/wp-content\\\/uploads\\\/2014\\\/09\\\/excelms-1024x568.jpg\",\"datePublished\":\"2014-09-01T06:49:17+00:00\",\"dateModified\":\"2019-07-03T13:44:58+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/menyimpan-laporan-dari-php-ke-ms-excel\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/menyimpan-laporan-dari-php-ke-ms-excel\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/menyimpan-laporan-dari-php-ke-ms-excel\\\/#primaryimage\",\"url\":\"http:\\\/\\\/www.webhozz.com\\\/blog\\\/wp-content\\\/uploads\\\/2014\\\/09\\\/excelms-1024x568.jpg\",\"contentUrl\":\"http:\\\/\\\/www.webhozz.com\\\/blog\\\/wp-content\\\/uploads\\\/2014\\\/09\\\/excelms-1024x568.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/menyimpan-laporan-dari-php-ke-ms-excel\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Menyimpan Laporan dari PHP ke Ms Excel\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/\",\"name\":\"WebHozz Blog\",\"description\":\"Kursus Web &amp; Android di Jakarta Bandung\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/#organization\",\"name\":\"WebHozz\",\"url\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/04\\\/logo-persegi.jpg\",\"contentUrl\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/04\\\/logo-persegi.jpg\",\"width\":442,\"height\":442,\"caption\":\"WebHozz\"},\"image\":{\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/#\\\/schema\\\/person\\\/ad1c5822a60b5b228c5ceda20e439fea\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/bff35e4083f3870e2f911c4437e788147d340f274268d361dd7e1cf20bebb156?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/bff35e4083f3870e2f911c4437e788147d340f274268d361dd7e1cf20bebb156?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/bff35e4083f3870e2f911c4437e788147d340f274268d361dd7e1cf20bebb156?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"url\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/author\\\/putralucio\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Menyimpan Laporan dari PHP ke Ms Excel - WebHozz Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.webhozz.com\/blog\/menyimpan-laporan-dari-php-ke-ms-excel\/","og_locale":"en_US","og_type":"article","og_title":"Menyimpan Laporan dari PHP ke Ms Excel - WebHozz Blog","og_description":"&nbsp; Untuk menyimpan atau mencetak data dari PHP kebentuk CSV (Ms Excel), Sangatlah mudah. Anda cukup membuat satu file php , misalkan cetak.php.. lalu ketikkan","og_url":"https:\/\/www.webhozz.com\/blog\/menyimpan-laporan-dari-php-ke-ms-excel\/","og_site_name":"WebHozz Blog","article_published_time":"2014-09-01T06:49:17+00:00","article_modified_time":"2019-07-03T13:44:58+00:00","og_image":[{"width":1133,"height":629,"url":"https:\/\/www.webhozz.com\/blog\/wp-content\/uploads\/2014\/09\/excelms.jpg","type":"image\/jpeg"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.webhozz.com\/blog\/menyimpan-laporan-dari-php-ke-ms-excel\/#article","isPartOf":{"@id":"https:\/\/www.webhozz.com\/blog\/menyimpan-laporan-dari-php-ke-ms-excel\/"},"author":{"name":"admin","@id":"https:\/\/www.webhozz.com\/blog\/#\/schema\/person\/ad1c5822a60b5b228c5ceda20e439fea"},"headline":"Menyimpan Laporan dari PHP ke Ms Excel","datePublished":"2014-09-01T06:49:17+00:00","dateModified":"2019-07-03T13:44:58+00:00","mainEntityOfPage":{"@id":"https:\/\/www.webhozz.com\/blog\/menyimpan-laporan-dari-php-ke-ms-excel\/"},"wordCount":90,"publisher":{"@id":"https:\/\/www.webhozz.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.webhozz.com\/blog\/menyimpan-laporan-dari-php-ke-ms-excel\/#primaryimage"},"thumbnailUrl":"http:\/\/www.webhozz.com\/blog\/wp-content\/uploads\/2014\/09\/excelms-1024x568.jpg","keywords":["Belajar PHP","belajar web programming","convert","convert php ke excel","php","php belajar","php to excel"],"articleSection":["Belajar Web Programming"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.webhozz.com\/blog\/menyimpan-laporan-dari-php-ke-ms-excel\/","url":"https:\/\/www.webhozz.com\/blog\/menyimpan-laporan-dari-php-ke-ms-excel\/","name":"Menyimpan Laporan dari PHP ke Ms Excel - WebHozz Blog","isPartOf":{"@id":"https:\/\/www.webhozz.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.webhozz.com\/blog\/menyimpan-laporan-dari-php-ke-ms-excel\/#primaryimage"},"image":{"@id":"https:\/\/www.webhozz.com\/blog\/menyimpan-laporan-dari-php-ke-ms-excel\/#primaryimage"},"thumbnailUrl":"http:\/\/www.webhozz.com\/blog\/wp-content\/uploads\/2014\/09\/excelms-1024x568.jpg","datePublished":"2014-09-01T06:49:17+00:00","dateModified":"2019-07-03T13:44:58+00:00","breadcrumb":{"@id":"https:\/\/www.webhozz.com\/blog\/menyimpan-laporan-dari-php-ke-ms-excel\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.webhozz.com\/blog\/menyimpan-laporan-dari-php-ke-ms-excel\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webhozz.com\/blog\/menyimpan-laporan-dari-php-ke-ms-excel\/#primaryimage","url":"http:\/\/www.webhozz.com\/blog\/wp-content\/uploads\/2014\/09\/excelms-1024x568.jpg","contentUrl":"http:\/\/www.webhozz.com\/blog\/wp-content\/uploads\/2014\/09\/excelms-1024x568.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/www.webhozz.com\/blog\/menyimpan-laporan-dari-php-ke-ms-excel\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.webhozz.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Menyimpan Laporan dari PHP ke Ms Excel"}]},{"@type":"WebSite","@id":"https:\/\/www.webhozz.com\/blog\/#website","url":"https:\/\/www.webhozz.com\/blog\/","name":"WebHozz Blog","description":"Kursus Web &amp; Android di Jakarta Bandung","publisher":{"@id":"https:\/\/www.webhozz.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.webhozz.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.webhozz.com\/blog\/#organization","name":"WebHozz","url":"https:\/\/www.webhozz.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webhozz.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.webhozz.com\/blog\/wp-content\/uploads\/2018\/04\/logo-persegi.jpg","contentUrl":"https:\/\/www.webhozz.com\/blog\/wp-content\/uploads\/2018\/04\/logo-persegi.jpg","width":442,"height":442,"caption":"WebHozz"},"image":{"@id":"https:\/\/www.webhozz.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.webhozz.com\/blog\/#\/schema\/person\/ad1c5822a60b5b228c5ceda20e439fea","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/bff35e4083f3870e2f911c4437e788147d340f274268d361dd7e1cf20bebb156?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/bff35e4083f3870e2f911c4437e788147d340f274268d361dd7e1cf20bebb156?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/bff35e4083f3870e2f911c4437e788147d340f274268d361dd7e1cf20bebb156?s=96&d=mm&r=g","caption":"admin"},"url":"https:\/\/www.webhozz.com\/blog\/author\/putralucio\/"}]}},"_links":{"self":[{"href":"https:\/\/www.webhozz.com\/blog\/wp-json\/wp\/v2\/posts\/995","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webhozz.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webhozz.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webhozz.com\/blog\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webhozz.com\/blog\/wp-json\/wp\/v2\/comments?post=995"}],"version-history":[{"count":5,"href":"https:\/\/www.webhozz.com\/blog\/wp-json\/wp\/v2\/posts\/995\/revisions"}],"predecessor-version":[{"id":8784,"href":"https:\/\/www.webhozz.com\/blog\/wp-json\/wp\/v2\/posts\/995\/revisions\/8784"}],"wp:attachment":[{"href":"https:\/\/www.webhozz.com\/blog\/wp-json\/wp\/v2\/media?parent=995"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webhozz.com\/blog\/wp-json\/wp\/v2\/categories?post=995"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webhozz.com\/blog\/wp-json\/wp\/v2\/tags?post=995"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}