{"id":181,"date":"2008-05-13T11:43:32","date_gmt":"2008-05-13T11:43:32","guid":{"rendered":"http:\/\/apollo89.com\/wordpress\/?p=181"},"modified":"2013-02-02T23:01:39","modified_gmt":"2013-02-02T14:01:39","slug":"%ec%97%91%ec%85%80xls-%ed%99%94%ec%9d%bc%ec%9d%84-php%ec%97%90%ec%84%9c-%ec%9d%bd%ea%b8%b0","status":"publish","type":"post","link":"https:\/\/apollo89.com\/wordpress\/?p=181","title":{"rendered":"\uc5d1\uc140(*.xls) \ud654\uc77c\uc744 PHP\uc5d0\uc11c \uc77d\uae30"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p>1. <a title=\"http:\/\/sourceforge.net\/projects\/phpexcelreader\/\" href=\"http:\/\/sourceforge.net\/projects\/phpexcelreader\/\" target=\"_blank\">http:\/\/sourceforge.net\/projects\/phpexcelreader\/<\/a> \uc5d0\uc11c Spreadsheet_Excel_Reader\ub97c \ub2e4\uc6b4 \ubc1b\uc2b5\ub2c8\ub2e4.<br \/>\n2. \uc18c\uc2a4\ub97c \ubcf4\uba74 \uc0ac\uc6a9\ubc95\uc740 \uadf8\ub0e5 \uc54c \uc218 \uc788\uc2b5\ub2c8\ub2e4.<br \/>\n3. \ud55c\uae00\ucc98\ub9ac\uac00 \uc548\ub418\ub294 \ubb38\uc81c\ub3c4 \uc27d\uac8c \ubc1c\uacac\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<br \/>\n4. \uc544\ub798\uc640 \uac19\uc774 \uc0ac\uc6a9\ud558\uba74 \ud55c\uae00\ub3c4 \ucc98\ub9ac\uac00 \ub429\ub2c8\ub2e4.<\/p>\n<pre class=\"lang:php decode:true\">&lt;?\r\nrequire_once 'Excel\/reader.php';\r\n$data = new Spreadsheet_Excel_Reader();\r\n$data-&gt;setOutputEncoding('CP949'); \/\/ \uc774\ubd80\ubd84\ub9cc \ubc14\uafe8\uc2b5\ub2c8\ub2e4.\r\n$data-&gt;read('kortest.xls');\r\n\r\nerror_reporting(E_ALL ^ E_NOTICE);\r\necho \"&lt;table border=1&gt;\";\r\nfor ($i = 1; $i &lt;= $data-&gt;sheets[0]['numRows']; $i++) {\r\n       echo \"&lt;tr&gt;\";\r\n       for ($j = 1; $j &lt;= $data-&gt;sheets[0]['numCols']; $j++) {\r\n              echo \"&lt;td&gt;&amp;nbsp;\".$data-&gt;sheets[0]['cells'][$i][$j].\"&lt;\/td&gt;\";\r\n       }\r\n       echo \"&lt;\/tr&gt;\\n\";\r\n}\r\necho \"&lt;\/table&gt;\";\r\n?&gt;<\/pre>\n<p>\uc544\ub798\ub3c4 \uac19\uc774 \ucc38\uace0 :<br \/>\nRead and write Excel data with PHP : <a href=\"http:\/\/www-128.ibm.com\/developerworks\/opensource\/library\/os-phpexcel\/#author\">http:\/\/www-128.ibm.com\/developerworks\/opensource\/library\/os-phpexcel\/#author<\/a><br \/>\n<a href=\"http:\/\/pear.php.net\/package\/Spreadsheet_Excel_Writer\/redirected\">http:\/\/pear.php.net\/package\/Spreadsheet_Excel_Writer\/redirected<\/a><br \/>\n<a href=\"http:\/\/www.codeplex.com\/PHPExcel\">http:\/\/www.codeplex.com\/PHPExcel<\/a><br \/>\n<a href=\"http:\/\/sourceforge.net\/projects\/phpexcelreader\">http:\/\/sourceforge.net\/projects\/phpexcelreader<\/a><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; 1. http:\/\/sourceforge.net\/projects\/phpexcelreader\/ \uc5d0\uc11c Spreadsheet_Excel_Reader\ub97c \ub2e4\uc6b4 \ubc1b\uc2b5\ub2c8\ub2e4. 2. \uc18c\uc2a4\ub97c \ubcf4\uba74 \uc0ac\uc6a9\ubc95\uc740 \uadf8\ub0e5 \uc54c \uc218 \uc788\uc2b5\ub2c8\ub2e4. 3. \ud55c\uae00\ucc98\ub9ac\uac00 \uc548\ub418\ub294 \ubb38\uc81c\ub3c4 \uc27d\uac8c \ubc1c\uacac\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. 4. \uc544\ub798\uc640 \uac19\uc774 \uc0ac\uc6a9\ud558\uba74 \ud55c\uae00\ub3c4 \ucc98\ub9ac\uac00 \ub429\ub2c8\ub2e4. &lt;? require_once &#8216;Excel\/reader.php&#8217;; $data = new Spreadsheet_Excel_Reader(); $data-&gt;setOutputEncoding(&#8216;CP949&#8217;); \/\/ \uc774\ubd80\ubd84\ub9cc &hellip; <a href=\"https:\/\/apollo89.com\/wordpress\/?p=181\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[712],"tags":[7,802],"class_list":["post-181","post","type-post","status-publish","format-standard","hentry","category-phpasp","tag-php","tag-802"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>\uc5d1\uc140(*.xls) \ud654\uc77c\uc744 PHP\uc5d0\uc11c \uc77d\uae30 - Apollo89.com<\/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:\/\/apollo89.com\/wordpress\/?p=181\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\uc5d1\uc140(*.xls) \ud654\uc77c\uc744 PHP\uc5d0\uc11c \uc77d\uae30 - Apollo89.com\" \/>\n<meta property=\"og:description\" content=\"&nbsp; 1. http:\/\/sourceforge.net\/projects\/phpexcelreader\/ \uc5d0\uc11c Spreadsheet_Excel_Reader\ub97c \ub2e4\uc6b4 \ubc1b\uc2b5\ub2c8\ub2e4. 2. \uc18c\uc2a4\ub97c \ubcf4\uba74 \uc0ac\uc6a9\ubc95\uc740 \uadf8\ub0e5 \uc54c \uc218 \uc788\uc2b5\ub2c8\ub2e4. 3. \ud55c\uae00\ucc98\ub9ac\uac00 \uc548\ub418\ub294 \ubb38\uc81c\ub3c4 \uc27d\uac8c \ubc1c\uacac\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. 4. \uc544\ub798\uc640 \uac19\uc774 \uc0ac\uc6a9\ud558\uba74 \ud55c\uae00\ub3c4 \ucc98\ub9ac\uac00 \ub429\ub2c8\ub2e4. &lt;? require_once &#039;Excel\/reader.php&#039;; $data = new Spreadsheet_Excel_Reader(); $data-&gt;setOutputEncoding(&#039;CP949&#039;); \/\/ \uc774\ubd80\ubd84\ub9cc &hellip; Continue reading &rarr;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/apollo89.com\/wordpress\/?p=181\" \/>\n<meta property=\"og:site_name\" content=\"Apollo89.com\" \/>\n<meta property=\"article:published_time\" content=\"2008-05-13T11:43:32+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2013-02-02T14:01:39+00:00\" \/>\n<meta name=\"author\" content=\"apollo89\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\uae00\uc4f4\uc774\" \/>\n\t<meta name=\"twitter:data1\" content=\"apollo89\" \/>\n\t<meta name=\"twitter:label2\" content=\"\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04\" \/>\n\t<meta name=\"twitter:data2\" content=\"1\ubd84\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/apollo89.com\\\/wordpress\\\/?p=181#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/apollo89.com\\\/wordpress\\\/?p=181\"},\"author\":{\"name\":\"apollo89\",\"@id\":\"https:\\\/\\\/apollo89.com\\\/wordpress\\\/#\\\/schema\\\/person\\\/93f56825cac3b2f18e5f107995066c82\"},\"headline\":\"\uc5d1\uc140(*.xls) \ud654\uc77c\uc744 PHP\uc5d0\uc11c \uc77d\uae30\",\"datePublished\":\"2008-05-13T11:43:32+00:00\",\"dateModified\":\"2013-02-02T14:01:39+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/apollo89.com\\\/wordpress\\\/?p=181\"},\"wordCount\":47,\"commentCount\":0,\"keywords\":[\"PHP\",\"\uc5d1\uc140\"],\"articleSection\":[\"PHP\\\/ASP\"],\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/apollo89.com\\\/wordpress\\\/?p=181#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/apollo89.com\\\/wordpress\\\/?p=181\",\"url\":\"https:\\\/\\\/apollo89.com\\\/wordpress\\\/?p=181\",\"name\":\"\uc5d1\uc140(*.xls) \ud654\uc77c\uc744 PHP\uc5d0\uc11c \uc77d\uae30 - Apollo89.com\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/apollo89.com\\\/wordpress\\\/#website\"},\"datePublished\":\"2008-05-13T11:43:32+00:00\",\"dateModified\":\"2013-02-02T14:01:39+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/apollo89.com\\\/wordpress\\\/#\\\/schema\\\/person\\\/93f56825cac3b2f18e5f107995066c82\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/apollo89.com\\\/wordpress\\\/?p=181#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/apollo89.com\\\/wordpress\\\/?p=181\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/apollo89.com\\\/wordpress\\\/?p=181#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\ud648\",\"item\":\"https:\\\/\\\/apollo89.com\\\/wordpress\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\uc5d1\uc140(*.xls) \ud654\uc77c\uc744 PHP\uc5d0\uc11c \uc77d\uae30\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/apollo89.com\\\/wordpress\\\/#website\",\"url\":\"https:\\\/\\\/apollo89.com\\\/wordpress\\\/\",\"name\":\"Apollo89.com\",\"description\":\"\uc544\ud3f4\ub85c\uc528\uc758 \uc7a1\ub2e4\ud55c \uacbd\ud5d8\ub4e4..\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/apollo89.com\\\/wordpress\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ko-KR\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/apollo89.com\\\/wordpress\\\/#\\\/schema\\\/person\\\/93f56825cac3b2f18e5f107995066c82\",\"name\":\"apollo89\",\"description\":\"\uc544\ud3f4\ub85c89 \uc785\ub2c8\ub2e4.\",\"url\":\"https:\\\/\\\/apollo89.com\\\/wordpress\\\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\uc5d1\uc140(*.xls) \ud654\uc77c\uc744 PHP\uc5d0\uc11c \uc77d\uae30 - Apollo89.com","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:\/\/apollo89.com\/wordpress\/?p=181","og_locale":"ko_KR","og_type":"article","og_title":"\uc5d1\uc140(*.xls) \ud654\uc77c\uc744 PHP\uc5d0\uc11c \uc77d\uae30 - Apollo89.com","og_description":"&nbsp; 1. http:\/\/sourceforge.net\/projects\/phpexcelreader\/ \uc5d0\uc11c Spreadsheet_Excel_Reader\ub97c \ub2e4\uc6b4 \ubc1b\uc2b5\ub2c8\ub2e4. 2. \uc18c\uc2a4\ub97c \ubcf4\uba74 \uc0ac\uc6a9\ubc95\uc740 \uadf8\ub0e5 \uc54c \uc218 \uc788\uc2b5\ub2c8\ub2e4. 3. \ud55c\uae00\ucc98\ub9ac\uac00 \uc548\ub418\ub294 \ubb38\uc81c\ub3c4 \uc27d\uac8c \ubc1c\uacac\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. 4. \uc544\ub798\uc640 \uac19\uc774 \uc0ac\uc6a9\ud558\uba74 \ud55c\uae00\ub3c4 \ucc98\ub9ac\uac00 \ub429\ub2c8\ub2e4. &lt;? require_once 'Excel\/reader.php'; $data = new Spreadsheet_Excel_Reader(); $data-&gt;setOutputEncoding('CP949'); \/\/ \uc774\ubd80\ubd84\ub9cc &hellip; Continue reading &rarr;","og_url":"https:\/\/apollo89.com\/wordpress\/?p=181","og_site_name":"Apollo89.com","article_published_time":"2008-05-13T11:43:32+00:00","article_modified_time":"2013-02-02T14:01:39+00:00","author":"apollo89","twitter_card":"summary_large_image","twitter_misc":{"\uae00\uc4f4\uc774":"apollo89","\uc608\uc0c1 \ub418\ub294 \ud310\ub3c5 \uc2dc\uac04":"1\ubd84"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/apollo89.com\/wordpress\/?p=181#article","isPartOf":{"@id":"https:\/\/apollo89.com\/wordpress\/?p=181"},"author":{"name":"apollo89","@id":"https:\/\/apollo89.com\/wordpress\/#\/schema\/person\/93f56825cac3b2f18e5f107995066c82"},"headline":"\uc5d1\uc140(*.xls) \ud654\uc77c\uc744 PHP\uc5d0\uc11c \uc77d\uae30","datePublished":"2008-05-13T11:43:32+00:00","dateModified":"2013-02-02T14:01:39+00:00","mainEntityOfPage":{"@id":"https:\/\/apollo89.com\/wordpress\/?p=181"},"wordCount":47,"commentCount":0,"keywords":["PHP","\uc5d1\uc140"],"articleSection":["PHP\/ASP"],"inLanguage":"ko-KR","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/apollo89.com\/wordpress\/?p=181#respond"]}]},{"@type":"WebPage","@id":"https:\/\/apollo89.com\/wordpress\/?p=181","url":"https:\/\/apollo89.com\/wordpress\/?p=181","name":"\uc5d1\uc140(*.xls) \ud654\uc77c\uc744 PHP\uc5d0\uc11c \uc77d\uae30 - Apollo89.com","isPartOf":{"@id":"https:\/\/apollo89.com\/wordpress\/#website"},"datePublished":"2008-05-13T11:43:32+00:00","dateModified":"2013-02-02T14:01:39+00:00","author":{"@id":"https:\/\/apollo89.com\/wordpress\/#\/schema\/person\/93f56825cac3b2f18e5f107995066c82"},"breadcrumb":{"@id":"https:\/\/apollo89.com\/wordpress\/?p=181#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/apollo89.com\/wordpress\/?p=181"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/apollo89.com\/wordpress\/?p=181#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\ud648","item":"https:\/\/apollo89.com\/wordpress"},{"@type":"ListItem","position":2,"name":"\uc5d1\uc140(*.xls) \ud654\uc77c\uc744 PHP\uc5d0\uc11c \uc77d\uae30"}]},{"@type":"WebSite","@id":"https:\/\/apollo89.com\/wordpress\/#website","url":"https:\/\/apollo89.com\/wordpress\/","name":"Apollo89.com","description":"\uc544\ud3f4\ub85c\uc528\uc758 \uc7a1\ub2e4\ud55c \uacbd\ud5d8\ub4e4..","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/apollo89.com\/wordpress\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ko-KR"},{"@type":"Person","@id":"https:\/\/apollo89.com\/wordpress\/#\/schema\/person\/93f56825cac3b2f18e5f107995066c82","name":"apollo89","description":"\uc544\ud3f4\ub85c89 \uc785\ub2c8\ub2e4.","url":"https:\/\/apollo89.com\/wordpress\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/apollo89.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/181","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/apollo89.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/apollo89.com\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/apollo89.com\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/apollo89.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=181"}],"version-history":[{"count":0,"href":"https:\/\/apollo89.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/181\/revisions"}],"wp:attachment":[{"href":"https:\/\/apollo89.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=181"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/apollo89.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=181"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/apollo89.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=181"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}