{"id":345,"date":"2016-04-06T08:50:45","date_gmt":"2016-04-06T08:50:45","guid":{"rendered":"http:\/\/codebee.co.th\/labs\/?p=345"},"modified":"2016-09-21T14:22:23","modified_gmt":"2016-09-21T14:22:23","slug":"php-codeigniter-%e0%b9%80%e0%b8%99%e0%b9%89%e0%b8%99%e0%b9%83%e0%b8%8a%e0%b9%89%e0%b8%87%e0%b8%b2%e0%b8%99-%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%95%e0%b8%b4%e0%b8%94%e0%b8%95%e0%b8%b1%e0%b9%89%e0%b8%87","status":"publish","type":"post","link":"https:\/\/www.codebee.co.th\/labs\/php-codeigniter-%e0%b9%80%e0%b8%99%e0%b9%89%e0%b8%99%e0%b9%83%e0%b8%8a%e0%b9%89%e0%b8%87%e0%b8%b2%e0%b8%99-%e0%b8%81%e0%b8%b2%e0%b8%a3%e0%b8%95%e0%b8%b4%e0%b8%94%e0%b8%95%e0%b8%b1%e0%b9%89%e0%b8%87\/","title":{"rendered":"PHP Codeigniter \u0e40\u0e19\u0e49\u0e19\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19 : \u0e01\u0e32\u0e23\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07 codeigniter \u0e1a\u0e19\u0e42\u0e2e\u0e2a\u0e08\u0e23\u0e34\u0e07"},"content":{"rendered":"<h3>PHP Codeigniter \u0e40\u0e19\u0e49\u0e19\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19 : \u0e01\u0e32\u0e23\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07 codeigniter \u0e1a\u0e19\u0e42\u0e2e\u0e2a\u0e08\u0e23\u0e34\u0e07<\/h3>\n<p>\u0e40\u0e27\u0e2d\u0e23\u0e4c\u0e0a\u0e31\u0e48\u0e19\u0e17\u0e35\u0e48\u0e43\u0e0a\u0e49\u0e43\u0e19\u0e1a\u0e17\u0e04\u0e27\u0e32\u0e21\u0e19\u0e35\u0e49 PHP Codeigniter 3.0.5<\/p>\n<p>1. <strong>\u0e40\u0e1b\u0e25\u0e35\u0e48\u0e22\u0e19 CI ENVIRONMENT \u0e08\u0e32\u0e01 development \u0e40\u0e1b\u0e47\u0e19 production<\/strong><br \/>\n   \u0e40\u0e1b\u0e34\u0e14\u0e44\u0e1f\u0e25\u0e4c index.php \u0e17\u0e35\u0e48 root \u0e02\u0e2d\u0e07 codeigniter \u0e1b\u0e23\u0e30\u0e21\u0e32\u0e13\u0e1a\u0e23\u0e23\u0e17\u0e31\u0e14\u0e17\u0e35\u0e48 56<br \/>\n <!--more-->   <\/p>\n<pre class=\"lang:php decode:true \" >define('ENVIRONMENT', isset($_SERVER['CI_ENV']) ? $_SERVER['CI_ENV'] : 'production');<\/pre>\n<p>2. <strong>\u0e15\u0e31\u0e49\u0e07\u0e04\u0e48\u0e32 base_url \u0e43\u0e2b\u0e49\u0e40\u0e1b\u0e47\u0e19 domain \u0e08\u0e23\u0e34\u0e07 <\/strong><br \/>\n   \u0e40\u0e1b\u0e34\u0e14\u0e44\u0e1f\u0e25\u0e4c application\/config\/config.php \u0e1b\u0e23\u0e30\u0e21\u0e32\u0e13\u0e1a\u0e23\u0e23\u0e17\u0e31\u0e14 38<\/p>\n<pre class=\"lang:php decode:true \" >$config['base_url'] = 'http:\/\/www.yourdomain.com'; <\/pre>\n<p>3. <strong>\u0e2b\u0e32\u0e01\u0e21\u0e35\u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19 session \u0e43\u0e2b\u0e49\u0e44\u0e1b\u0e15\u0e31\u0e49\u0e07\u0e04\u0e48\u0e32 sess_save_path <\/strong><br \/>\n   \u0e40\u0e1b\u0e34\u0e14\u0e44\u0e1f\u0e25\u0e4c application\/config\/config.php \u0e1b\u0e23\u0e30\u0e21\u0e32\u0e13\u0e1a\u0e23\u0e23\u0e17\u0e31\u0e14 374<\/p>\n<pre class=\"lang:php decode:true \" >$config['sess_save_path'] = '\/home\/yourdomainname\/public_html\/tmp';<\/pre>\n<p>    &#8211; yourdomainname \u0e43\u0e2b\u0e49\u0e43\u0e2a\u0e48\u0e0a\u0e37\u0e48\u0e2d\u0e42\u0e14\u0e40\u0e21\u0e19\u0e44\u0e1b\u0e19\u0e30\u0e04\u0e23\u0e31\u0e1a<br \/>\n    &#8211; \u0e2a\u0e23\u0e49\u0e32\u0e07\u0e42\u0e1f\u0e25\u0e40\u0e14\u0e49\u0e2d\u0e15\u0e31\u0e49\u0e07\u0e0a\u0e37\u0e48\u0e2d\u0e27\u0e48\u0e32 tmp \u0e41\u0e25\u0e30 chmod \u0e40\u0e1b\u0e47\u0e19 777 \u0e44\u0e27\u0e49\u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e40\u0e01\u0e47\u0e1a\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e0a\u0e31\u0e48\u0e27\u0e04\u0e23\u0e32\u0e27\u0e41\u0e1a\u0e1a session<\/p>\n<p>3.1 <strong>\u0e2b\u0e32\u0e01\u0e21\u0e35\u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19 session \u0e43\u0e2b\u0e49\u0e44\u0e1b\u0e15\u0e31\u0e49\u0e07\u0e04\u0e48\u0e32 cookie_domain \u0e14\u0e49\u0e27\u0e22<\/strong><br \/>\n     \u0e40\u0e1b\u0e34\u0e14\u0e44\u0e1f\u0e25\u0e4c application\/config\/config.php \u0e1b\u0e23\u0e30\u0e21\u0e32\u0e13\u0e1a\u0e23\u0e23\u0e17\u0e31\u0e14 395<\/p>\n<pre class=\"lang:php decode:true \" >$config['cookie_domain']\t= 'yourdomain.com';<\/pre>\n<p>    yourdomain.com \u0e43\u0e2b\u0e49\u0e40\u0e1b\u0e25\u0e35\u0e48\u0e22\u0e19\u0e40\u0e1b\u0e47\u0e19\u0e0a\u0e37\u0e48\u0e2d\u0e42\u0e14\u0e40\u0e21\u0e19\u0e17\u0e35\u0e48\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e08\u0e23\u0e34\u0e07 \u0e44\u0e21\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e21\u0e35 http:\/\/ \u0e41\u0e25\u0e30 www \u0e19\u0e33\u0e2b\u0e19\u0e49\u0e32<\/p>\n<p><strong>\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e40\u0e1e\u0e34\u0e48\u0e21\u0e40\u0e15\u0e34\u0e21<\/strong><br \/>\n   \u0e2b\u0e32\u0e01\u0e42\u0e2e\u0e2a\u0e15\u0e34\u0e49\u0e07\u0e17\u0e35\u0e48\u0e17\u0e48\u0e32\u0e19\u0e2b\u0e23\u0e37\u0e2d\u0e25\u0e39\u0e01\u0e04\u0e49\u0e32\u0e43\u0e0a\u0e49\u0e1a\u0e23\u0e34\u0e01\u0e32\u0e23\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07 php version \u0e2a\u0e39\u0e48\u0e07\u0e01\u0e27\u0e48\u0e32 5.3<br \/>\n   \u0e15\u0e31\u0e27 CI \u0e08\u0e30\u0e41\u0e2a\u0e14\u0e07 error \u0e40\u0e01\u0e35\u0e48\u0e22\u0e27\u0e01\u0e31\u0e1a init_set() \u0e1f\u0e31\u0e07\u0e01\u0e4c\u0e0a\u0e31\u0e48\u0e19<br \/>\n   \u0e43\u0e2b\u0e49\u0e40\u0e1b\u0e34\u0e14\u0e44\u0e1f\u0e25\u0e4c index.php \u0e02\u0e2d\u0e07 CI \u0e17\u0e35\u0e48 root \u0e1b\u0e23\u0e30\u0e21\u0e32\u0e13\u0e1a\u0e23\u0e23\u0e17\u0e31\u0e14\u0e17\u0e35\u0e48 75 &#8211; 83<br \/>\n   \u0e41\u0e25\u0e30 comment error_reporting \u0e17\u0e34\u0e49\u0e07\u0e44\u0e1b<br \/>\n   \u0e2b\u0e23\u0e37\u0e2d\u0e1b\u0e23\u0e31\u0e1a php version \u0e15\u0e23\u0e07 version_compare \u0e43\u0e2b\u0e49\u0e15\u0e23\u0e07\u0e01\u0e31\u0e1a\u0e40\u0e27\u0e2d\u0e23\u0e4c\u0e0a\u0e31\u0e48\u0e19\u0e1a\u0e19\u0e42\u0e2e\u0e2a\u0e40\u0e23\u0e32<\/p>\n","protected":false},"excerpt":{"rendered":"<p>PHP Codeigniter \u0e40\u0e19\u0e49\u0e19\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19 : \u0e01\u0e32\u0e23\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07 codeigniter \u0e1a\u0e19\u0e42\u0e2e\u0e2a\u0e08\u0e23\u0e34\u0e07 \u0e40\u0e27\u0e2d\u0e23\u0e4c\u0e0a\u0e31\u0e48\u0e19\u0e17\u0e35\u0e48\u0e43\u0e0a\u0e49\u0e43\u0e19\u0e1a\u0e17\u0e04\u0e27\u0e32\u0e21\u0e19\u0e35\u0e49 PHP Codeigniter 3.0.5 1. \u0e40\u0e1b\u0e25\u0e35\u0e48\u0e22\u0e19 CI ENVIRONMENT \u0e08\u0e32\u0e01 development \u0e40\u0e1b\u0e47\u0e19 production \u0e40\u0e1b\u0e34\u0e14\u0e44\u0e1f\u0e25\u0e4c&#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,46],"tags":[39,40,5,371,43,44],"class_list":{"0":"post-345","1":"post","2":"type-post","3":"status-publish","4":"format-video","5":"has-post-thumbnail","6":"hentry","7":"category--php-codeigniter-framework","8":"category-website-development-","9":"tag-codeigniter-","11":"tag-php-codeigniter","12":"tag-371","13":"tag-43","14":"tag-44","15":"post_format-post-format-video"},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/posts\/345","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=345"}],"version-history":[{"count":9,"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/posts\/345\/revisions"}],"predecessor-version":[{"id":2447,"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/posts\/345\/revisions\/2447"}],"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=345"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/categories?post=345"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/tags?post=345"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}