{"id":3202,"date":"2017-01-21T06:49:52","date_gmt":"2017-01-21T06:49:52","guid":{"rendered":"https:\/\/www.codebee.co.th\/labs\/?p=3202"},"modified":"2017-04-22T05:34:18","modified_gmt":"2017-04-22T05:34:18","slug":"%e0%b8%aa%e0%b8%ad%e0%b8%99-codeigniter-%e0%b8%94%e0%b8%b6%e0%b8%87%e0%b8%a3%e0%b8%b9%e0%b8%9b%e0%b8%97%e0%b8%b1%e0%b9%89%e0%b8%87%e0%b8%ab%e0%b8%a1%e0%b8%94%e0%b8%88%e0%b8%b2%e0%b8%81%e0%b8%ab","status":"publish","type":"post","link":"https:\/\/www.codebee.co.th\/labs\/%e0%b8%aa%e0%b8%ad%e0%b8%99-codeigniter-%e0%b8%94%e0%b8%b6%e0%b8%87%e0%b8%a3%e0%b8%b9%e0%b8%9b%e0%b8%97%e0%b8%b1%e0%b9%89%e0%b8%87%e0%b8%ab%e0%b8%a1%e0%b8%94%e0%b8%88%e0%b8%b2%e0%b8%81%e0%b8%ab\/","title":{"rendered":"\u0e2a\u0e2d\u0e19 codeigniter \u0e14\u0e36\u0e07\u0e23\u0e39\u0e1b\u0e17\u0e31\u0e49\u0e07\u0e2b\u0e21\u0e14\u0e08\u0e32\u0e01\u0e2b\u0e19\u0e49\u0e32\u0e40\u0e27\u0e47\u0e1a\u0e14\u0e49\u0e27\u0e22 simple_html_dom"},"content":{"rendered":"<h3>\u0e2a\u0e2d\u0e19 codeigniter \u0e14\u0e36\u0e07\u0e23\u0e39\u0e1b\u0e17\u0e31\u0e49\u0e07\u0e2b\u0e21\u0e14\u0e08\u0e32\u0e01\u0e2b\u0e19\u0e49\u0e32\u0e40\u0e27\u0e47\u0e1a\u0e14\u0e49\u0e27\u0e22 simple_html_dom<\/h3>\n<p><\/br><br \/>\n<strong>\u0e2a\u0e2d\u0e19 codeigniter \u0e14\u0e36\u0e07\u0e23\u0e39\u0e1b\u0e17\u0e31\u0e49\u0e07\u0e2b\u0e21\u0e14\u0e08\u0e32\u0e01\u0e2b\u0e19\u0e49\u0e32\u0e40\u0e27\u0e47\u0e1a\u0e14\u0e49\u0e27\u0e22 simple_html_dom<\/strong><br \/>\nsimple_html_dom \u0e40\u0e1b\u0e47\u0e19 php Class \u0e17\u0e35\u0e48\u0e16\u0e39\u0e01\u0e1e\u0e31\u0e12\u0e19\u0e32\u0e02\u0e36\u0e49\u0e19\u0e21\u0e32\u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e01\u0e32\u0e23\u0e14\u0e36\u0e07\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e08\u0e32\u0e01\u0e2b\u0e19\u0e49\u0e32\u0e40\u0e27\u0e47\u0e1a\u0e41\u0e25\u0e30\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e40\u0e02\u0e49\u0e32\u0e16\u0e36\u0e07 Element \u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e43\u0e19\u0e2b\u0e19\u0e49\u0e32\u0e19\u0e31\u0e49\u0e19 \u0e46 \u0e17\u0e31\u0e49\u0e07 div class, id, attribute \u0e19\u0e31\u0e49\u0e19\u0e17\u0e33\u0e43\u0e2b\u0e49\u0e40\u0e23\u0e32\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e23\u0e39\u0e49\u0e27\u0e48\u0e32\u0e41\u0e17\u0e47\u0e01 img \u0e41\u0e2d\u0e17\u0e17\u0e23\u0e34\u0e1a\u0e34\u0e27\u0e15\u0e4c src \u0e21\u0e35\u0e04\u0e48\u0e32\u0e41\u0e25\u0e30\u0e41\u0e2a\u0e14\u0e07\u0e23\u0e39\u0e1b\u0e2d\u0e30\u0e44\u0e23 <!--more--><\/p>\n<p>\u0e40\u0e23\u0e32\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e19\u0e33 simple_html_dom \u0e21\u0e32\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e23\u0e48\u0e27\u0e21\u0e01\u0e31\u0e1a codeigniter \u0e43\u0e19\u0e25\u0e31\u0e01\u0e29\u0e13\u0e30 third party \u0e44\u0e14\u0e49 \u0e25\u0e2d\u0e07\u0e21\u0e32\u0e14\u0e39\u0e01\u0e31\u0e19\u0e04\u0e23\u0e31\u0e1a\u0e27\u0e48\u0e32 \u0e08\u0e30\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e44\u0e14\u0e49\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e44\u0e23<br \/>\n<\/br><\/p>\n<h4>\u0e1b\u0e23\u0e30\u0e42\u0e22\u0e0a\u0e19\u0e4c\u0e02\u0e2d\u0e07\u0e04\u0e25\u0e32\u0e2a simple_html_dom<\/h4>\n<p>&#8211; \u0e43\u0e0a\u0e49\u0e42\u0e2b\u0e25\u0e14\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e08\u0e32\u0e01\u0e2b\u0e19\u0e49\u0e32\u0e40\u0e27\u0e47\u0e1a\u0e44\u0e0b\u0e15\u0e4c\u0e44\u0e14\u0e49\u0e17\u0e31\u0e49\u0e07\u0e2b\u0e19\u0e49\u0e32<br \/>\n&#8211; \u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e40\u0e02\u0e49\u0e32\u0e16\u0e36\u0e07\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e15\u0e48\u0e32\u0e07 \u0e46 \u0e43\u0e19\u0e2b\u0e19\u0e49\u0e32\u0e40\u0e27\u0e47\u0e1a\u0e07\u0e48\u0e32\u0e22 \u0e46 \u0e43\u0e19\u0e23\u0e39\u0e1b\u0e41\u0e1a\u0e1a Array Object<br \/>\n&#8211; \u0e40\u0e23\u0e47\u0e27<br \/>\n<\/br><\/p>\n<h4>\u0e14\u0e32\u0e27\u0e19\u0e4c\u0e42\u0e2b\u0e25\u0e14\u0e41\u0e25\u0e30\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07 simple_html_dom.php<\/h4>\n<p>1. \u0e14\u0e32\u0e27\u0e19\u0e4c\u0e42\u0e2b\u0e25\u0e14 <a href=\"http:\/\/sourceforge.net\/projects\/simplehtmldom\/\" target=\"_blank\">simple_html_dom<\/a> \u0e04\u0e25\u0e32\u0e2a unzip \u0e41\u0e25\u0e30\u0e27\u0e32\u0e07\u0e44\u0e27\u0e49\u0e17\u0e35\u0e48\u0e42\u0e1f\u0e25\u0e40\u0e14\u0e49\u0e2d application\/third_party<br \/>\n2. \u0e2a\u0e23\u0e49\u0e32\u0e07 Controller \u0e15\u0e31\u0e49\u0e07\u0e0a\u0e37\u0e48\u0e2d\u0e27\u0e48\u0e32 HtmlController.php \u0e43\u0e19\u0e2a\u0e48\u0e27\u0e19\u0e02\u0e2d\u0e07 Construct \u0e43\u0e2b\u0e49\u0e42\u0e2b\u0e25\u0e14\u0e04\u0e25\u0e32\u0e2a\u0e21\u0e32\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e14\u0e31\u0e07\u0e19\u0e35\u0e49<\/p>\n<pre class=\"lang:default decode:true \" >class HtmlController extends CI_Controller {\r\n\r\n    function __construct() {\r\n        parent::__construct();\r\n\r\n        \/\/ \u0e42\u0e2b\u0e25\u0e14 simple_html_dom \r\n        include APPPATH . 'third_party\/simple_html_dom.php';\r\n    }<\/pre>\n<p>3. \u0e43\u0e19\u0e2a\u0e48\u0e27\u0e19\u0e02\u0e2d\u0e07 index \u0e43\u0e2b\u0e49\u0e1b\u0e23\u0e30\u0e01\u0e32\u0e28\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19 simple_html_dom \u0e04\u0e25\u0e32\u0e2a\u0e14\u0e31\u0e07\u0e19\u0e35\u0e49<\/p>\n<pre class=\"lang:default decode:true \" >&lt;?php\r\n\r\nclass HtmlController extends CI_Controller {\r\n\r\n    function __construct() {\r\n        parent::__construct();\r\n        \r\n        \/\/ \u0e42\u0e2b\u0e25\u0e14 simple_html_dom \r\n        include APPPATH . 'third_party\/simple_html_dom.php';\r\n    }\r\n\r\n    function index() {\r\n\r\n        $html = new Simple_html_dom(); \/\/ \u0e1b\u0e23\u0e30\u0e01\u0e32\u0e28\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e04\u0e25\u0e32\u0e2a\r\n        $html-&gt;load_file('http:\/\/www.codebee.co.th\/labs\/'); \/\/\u0e40\u0e25\u0e37\u0e2d\u0e01\u0e42\u0e2b\u0e25\u0e14\u0e40\u0e27\u0e47\u0e1a\u0e44\u0e0b\u0e15\u0e4c\r\n        foreach ($html-&gt;find('img') as $element) { \/\/ \u0e43\u0e0a\u0e49\u0e40\u0e21\u0e18\u0e2d\u0e14 find \u0e04\u0e49\u0e19\u0e2b\u0e32 img element\r\n            echo $element-&gt;src . '&lt;br&gt;'; \/\/ \u0e41\u0e2a\u0e14\u0e07\u0e04\u0e48\u0e32\u0e43\u0e19\u0e41\u0e2d\u0e17\u0e17\u0e23\u0e34\u0e1a\u0e34\u0e27\u0e23\u0e4c src\r\n        }\r\n    }\r\n\r\n}\r\n?&gt;<\/pre>\n<p>4. \u0e41\u0e25\u0e30\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e40\u0e23\u0e32\u0e17\u0e14\u0e2a\u0e2d\u0e1a\u0e01\u0e32\u0e23\u0e17\u0e33\u0e07\u0e32\u0e19\u0e42\u0e14\u0e22\u0e40\u0e1b\u0e34\u0e14\u0e44\u0e1b\u0e17\u0e35\u0e48 HtmlController \u0e08\u0e30\u0e44\u0e14\u0e49 Output \u0e40\u0e1b\u0e47\u0e19 path \u0e02\u0e2d\u0e07\u0e23\u0e39\u0e1b\u0e17\u0e31\u0e49\u0e07\u0e2b\u0e21\u0e14\u0e17\u0e35\u0e48\u0e21\u0e35\u0e43\u0e19\u0e2b\u0e19\u0e49\u0e32\u0e40\u0e27\u0e47\u0e1a<\/p>\n<pre class=\"lang:default highlight:0 decode:true \" >onesignal-\u0e40\u0e27\u0e47\u0e1a-push-notification-6-730x410.jpg\r\n\u0e08\u0e32\u0e01\u0e19\u0e31\u0e49\u0e19\u0e08\u0e30\u0e02\u0e36\u0e40\u0e19\u0e2a\u0e16\u0e32\u0e19\u0e30\u0e01\u0e32\u0e23\u0e25\u0e07\u0e41\u0e2d\u0e1b\u0e43\u0e2b\u0e49\u0e23\u0e2d\u0e08\u0e19\u0e01\u0e27\u0e48\u0e32\u0e08\u0e30\u0e14\u0e33\u0e40\u0e19\u0e34\u0e19\u0e01\u0e32\u0e23\u0e08\u0e19\u0e40\u0e2a\u0e23\u0e47\u0e08-730x410.png\r\nphp-codeigniter-framework-730x304.png\r\n\u0e27\u0e34\u0e18\u0e35\u0e17\u0e33\u0e25\u0e34\u0e07\u0e04\u0e4c\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e19\u0e42\u0e1b\u0e23\u0e41\u0e01\u0e23\u0e21-line-730x410.png\r\ngoogle-adword-\u0e44\u0e1f\u0e25\u0e4c-excel-730x410.jpg\r\n.......................\r\n<\/pre>\n<p>\u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e04\u0e25\u0e32\u0e2a\u0e43\u0e19\u0e25\u0e31\u0e01\u0e29\u0e13\u0e30\u0e19\u0e35\u0e49\u0e19\u0e34\u0e22\u0e21\u0e19\u0e33\u0e44\u0e1b\u0e43\u0e0a\u0e49\u0e43\u0e19\u0e01\u0e32\u0e23\u0e14\u0e36\u0e07\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e1a\u0e32\u0e07\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e08\u0e32\u0e01\u0e40\u0e27\u0e47\u0e1a\u0e44\u0e0b\u0e15\u0e4c\u0e17\u0e35\u0e48\u0e43\u0e2b\u0e49\u0e1a\u0e23\u0e34\u0e01\u0e32\u0e23\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e2a\u0e32\u0e18\u0e32\u0e23\u0e13\u0e30\u0e17\u0e35\u0e48\u0e22\u0e31\u0e07\u0e44\u0e21\u0e48\u0e21\u0e35 API \u0e43\u0e2b\u0e49\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19 \u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e40\u0e0a\u0e48\u0e19 Google Currency \u0e1a\u0e23\u0e34\u0e01\u0e32\u0e23\u0e41\u0e1b\u0e25\u0e07\u0e04\u0e48\u0e32\u0e40\u0e07\u0e34\u0e19\u0e08\u0e32\u0e01\u0e2a\u0e01\u0e38\u0e25\u0e40\u0e07\u0e34\u0e19\u0e17\u0e31\u0e48\u0e27\u0e42\u0e25\u0e01 \u0e40\u0e23\u0e32\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e43\u0e0a\u0e49\u0e04\u0e25\u0e32\u0e2a\u0e19\u0e35\u0e49\u0e43\u0e19\u0e01\u0e32\u0e23\u0e44\u0e1b\u0e14\u0e36\u0e07\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e04\u0e48\u0e32\u0e40\u0e07\u0e34\u0e19\u0e21\u0e32\u0e41\u0e2a\u0e14\u0e07\u0e20\u0e32\u0e22\u0e43\u0e19\u0e40\u0e27\u0e47\u0e1a\u0e44\u0e0b\u0e15\u0e4c\u0e02\u0e2d\u0e07\u0e40\u0e23\u0e32\u0e44\u0e14\u0e49 \u0e2b\u0e23\u0e37\u0e2d\u0e41\u0e21\u0e49\u0e41\u0e15\u0e48\u0e01\u0e32\u0e23\u0e14\u0e36\u0e07\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e09\u0e25\u0e32\u0e01\u0e01\u0e34\u0e19\u0e41\u0e1a\u0e48\u0e07\u0e23\u0e31\u0e10\u0e1a\u0e32\u0e25 \u0e01\u0e47\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e17\u0e33\u0e44\u0e14\u0e49\u0e40\u0e0a\u0e48\u0e19\u0e01\u0e31\u0e19<br \/>\n<\/br><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0e2a\u0e2d\u0e19 codeigniter \u0e14\u0e36\u0e07\u0e23\u0e39\u0e1b\u0e17\u0e31\u0e49\u0e07\u0e2b\u0e21\u0e14\u0e08\u0e32\u0e01\u0e2b\u0e19\u0e49\u0e32\u0e40\u0e27\u0e47\u0e1a\u0e14\u0e49\u0e27\u0e22 simple_html_dom \u0e2a\u0e2d\u0e19 codeigniter \u0e14\u0e36\u0e07\u0e23\u0e39\u0e1b\u0e17\u0e31\u0e49\u0e07\u0e2b\u0e21\u0e14\u0e08\u0e32\u0e01\u0e2b\u0e19\u0e49\u0e32\u0e40\u0e27\u0e47\u0e1a\u0e14\u0e49\u0e27\u0e22 simple_html_dom simple_html_dom \u0e40\u0e1b\u0e47\u0e19 php Class \u0e17\u0e35\u0e48\u0e16\u0e39\u0e01\u0e1e\u0e31\u0e12\u0e19\u0e32\u0e02\u0e36\u0e49\u0e19\u0e21\u0e32\u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e01\u0e32\u0e23\u0e14\u0e36\u0e07\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e08\u0e32\u0e01\u0e2b\u0e19\u0e49\u0e32\u0e40\u0e27\u0e47\u0e1a\u0e41\u0e25\u0e30\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e40\u0e02\u0e49\u0e32\u0e16\u0e36\u0e07 Element \u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e43\u0e19\u0e2b\u0e19\u0e49\u0e32\u0e19\u0e31\u0e49\u0e19 \u0e46 \u0e17\u0e31\u0e49\u0e07 div class, id,&#8230;<\/p>\n","protected":false},"author":1,"featured_media":508,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"video","meta":{"footnotes":""},"categories":[168],"tags":[1533,1172,1171,8,7,12,825,304,372,1173],"class_list":{"0":"post-3202","1":"post","2":"type-post","3":"status-publish","4":"format-video","5":"has-post-thumbnail","6":"hentry","7":"category--php-codeigniter-framework","8":"tag-codebeeagency","9":"tag-php-","10":"tag--php","11":"tag--ci-framework","12":"tag--codeigniter","14":"tag-825","15":"tag-304","17":"tag-1173","18":"post_format-post-format-video"},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/posts\/3202","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/comments?post=3202"}],"version-history":[{"count":7,"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/posts\/3202\/revisions"}],"predecessor-version":[{"id":3209,"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/posts\/3202\/revisions\/3209"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/media\/508"}],"wp:attachment":[{"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/media?parent=3202"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/categories?post=3202"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/tags?post=3202"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}