¡ÒûÃѺ php.ini ã¹à¤Ã×èͧà¾×èÍãËéàËÁÒСѺ¡ÒþѲ¹ÒàÇ» º·¤ÇÒÁ¹Õé¨ÐÁ×ÍãËÁèËÃ×ÍÁ×Íà¡ëÒ¡çÍèÒ¹ä´é à¾ÃÒйÕè¨Ðà»ç¹¡ÒûÃѺáµè§ php.ini ãËéàËÁÒÐÊÓËÃѺ¡ÒþѲ¹Òà·èÒ¹Ñé¹ËÅÒÂ椹ÁÑ¡¨Ðâ¾Ê·ì¶ÒÁ¡Ñ¹ãËéàË繺èÍÂæµÒÁ¿ÍÃÑèÁ php ·ÑèÇä» ÇèÒ·ÓäÁÊÔ觷Õè¾Ç¡à¢Ò·Óä´éº¹ localhost ¡ÅѺ·ÓäÁèä´éº¹ server ¨ÃÔ§¹Ñè¹à»ç¹à¾ÃÒйѡ¾Ñ²¹ÒàËÅèÒ¹Ñé¹¢Ò´¤ÇÒÁà¢éÒã¨ã¹¡ÒûÃѺáµè§ãËéàËÁÒÐÊÁÊÓËÃѺÊÀÒ¾áÇ´ÅéÍÁ¢Í§¡ÒþѲ¹Ò (development) àÁ×èÍ ¹Óä»ãªéº¹ server ¨ÃÔ§áÅéÇ ·ÓãËéãªé§Ò¹äÁèä´éàËÁ×͹à¤Â à»ç¹à¾ÃÒÐ server ¨ÃÔ§áµèÅзÕè¨ÐÁÕ¡ÒûÃѺáµè§ php.ini ÊÓËÃѺ¡ÒÃãªé¨ÃÔ§à·èÒ¹Ñé¹ ·Ó ãËé¡ÒûÃѺáµè§ php.ini ÊÓËÃѺ¡ÒþѲ¹Òà·èÒ¹Ñé¹ à»ç¹ÊÔ觷ÕèÊÓ¤ÑÁÒ¡ à¾ÃÒйÑè¹ËÁÒ¤ÇÒÁÇèÒ äÁèÇèҨйÓàÇçºä«µìä»ÇÒ§äÇé·Õèã´** ¡ç¨Ðãªé§Ò¹ä´éà»ç¹»¡µÔàËÁ×͹à¤Â. ¤Óàµ×͹¡è͹·Ó¡ÒûÃѺáµè§! php.iniËÒ¡ php.ini ¢Í§·èÒ¹à»ç¹¤¹ÅÐÃØ蹡ѺµÑÇÍÂèÒ§ ËÃ×ͺҧÍÂèÒ§ÁÕ¡Òà comment äÇéã¹¹Ñé¹ÇèÒ deprecate ¡çÍÂèÒä´éä»ãªéÁѹ ËÃ×ͻԴ¡ÒÃãªéä»àÅ ¡ÒûÃѺáµè§µèÍ仹Õé äÁèãªè·Ñé§ËÁ´¢Í§ php.ini áµè¨Ðá¹Ð¹ÓÊÔ觷Õè¤ÇûÃѺà»ç¹ºÒ§Êèǹä»à·èÒ¹Ñé¹ PHP.INIshort_open_tag = Off »Ô´¡ÒÃãªé§Ò¹¡ÒÃà¢Õ¹ẺÊÑé¹æ ( áÅÐ ) server ¨ÃÔ§ËÅÒÂáË觻Դ¡ÒÃãªé§Ò¹¹Õé ´Ñ§¹Ñé¹àÃÒ¤ÇûԴÁѹ´éÇ áÅÐãËéà»ÅÕè¹ä»ãªé áÅÐ á·¹. asp_tags = Off àÃÒà¢Õ¹ php ¤ÃѺ äÁèä´éà¢Õ¹ asp ( <% ... %> ) output_buffering = Off server ¨ÃÔ§ËÅÒÂáË觻ԴÁѹ ·Ò§á¡é¤×Í ãÊè ob_start(); ·ÕèºÃ÷ѴááÊØ´¢Í§â¤é´ áÅÐ ob_end_flush(); ·ÕèºÃ÷ѴÅèÒ§ÊØ´ ËÃ×Í Í͡Ẻ¡Ò÷ӧҹ¢Í§Ê¤ÃÔ»àÊÕÂãËÁè ãËéÁÕ¡ÒûÃÐÁÇżÅà»ç¹ÊèǹááÊØ´ µÒÁ´éÇ¡ÒÃáÊ´§¼Åà»ç¹ÊèǹÊØ´·éÒ ¡ç¨ÐªèÇÂä´é max_execution_time = 30 ãËéàÇÅÒ¡Ò÷ӧҹäÁè¤ÇÃà¡Ô¹ 30 ÇÔ¹Ò·Õ memory_limit = 64M ¡Ó˹´ÅÔÁÔµ¢Í§Ë¹èǤÇÒÁ¨ÓäÇéà·èÒ¹Õé ãªé§Ò¹ã¹ shared hosting ä´éʺÒÂæ ËÃ×ͨÐŴŧÁÒÍÕ¡¹Ô´Ë¹èÍ àËÅ×ÍÊÑ¡ 60M ¡çÂÔè§´Õ error_reporting = E_ALL ÃÒ§ҹ·Ø¡ÍÂèÒ§ ·Ñé§ Error, Warning, Notice à¾×èÍ·ÕèàÃÒ¨Ðä´éàËç¹·Ø¡ÍÂèÒ§ÇèÒÁÕ¤ÇÒÁ¼Ô´¾ÅÒ´ÍÐäúéÒ§ áÅéǵÒÁá¡éãËéËÁ´¤ÃѺ display_errors = On áÊ´§ÃÒ¡Ò÷Õè error µèÒ§æ ÍÂèÒ§·ÕèºÍ¡´éÒ¹º¹ à¾×èÍ·ÕèàÃÒ¨Ðä´éµÒÁá¡é¤ÃѺ error äÁèãªèÊÔ觷Õè¹èÒ¡ÅÑÇáÅйèÒÍÒ·Õè¨Ð»Ô´Áѹ áµèàÃÒµéͧá¡éÁѹ display_startup_errors = On áÊ´§ error áÁé¡ÃзÑ觵͹àÃÔèÁµé¹ register_globals = Off µéͧ»Ô´äÇéà¾×èͤÇÒÁ»ÅÍ´ÀÑ ¹Í¡¨Ò¡¹Õé·ÓãËéàÃÒµéͧ»ÃСÒȵÑÇá»ÃãËéªÑ´à¨¹ÇèÒà»ç¹ÍÐäÃÁÒ¨Ò¡ä˹ (àÅÔ¡ÇÔ¸Õà¢Õ¹ẺâºÃÒ³æ ª¹Ô´·Õè¨Ùèæ¨ÐàÃÕ¡ $var ¡çàÃÕ¡ ¡Ñ¹ä´éáÅéǤÃѺ) àªè¹ ¡ÒÃÃѺ¤èÒ¨Ò¡ form method post ¡çãËéãªé $name = $_POST['name']; á·¹¡ÒÃàÃÕ¡ $name à©Âæâ´ÂäÁèºÍ¡ÇèÒÁѹ¤×ÍÍÐäÃÁÒ¨Ò¡ä˹. post_max_size = 8M äÁè¤ÇÃà¡Ô¹¨Ò¡¹Õé à¾ÃÒÐ server ¨ÃÔ§ÊèǹãËè¡ç»ÃÐÁÒ³¹Õé ¡ÒáÓ˹´ÁÒ¡æ¨ÐÁÕáµè¼ÅàÊÕ magic_quotes_gpc = Off ã¹ php ÃØè¹ãËÁèæµèÍæ仨ÐàÅÔ¡¡ÒÃãªé§Ò¹Êèǹ¹ÕéáÅéÇ ´Ñ§¹Ñé¹àÃÒ¡ç¤Çêԧ»Ô´ÁѹàÊÕ´éÇ áµèËÒ¡ server ¨ÃÔ§·Õèä˹ÂѧãªéÍÂÙè áÅéÇàÃÒµéͧ༪ԡѺ¡ÒÃá»Å§ " à»ç¹ " ¡çãËéãªéä¿Åì .htaccess »Ô´ÁѹàÊÕ ´éǤÓÊÑè§ php_flag magic_quotes_gpc Off ËÃ×Í php_value magic_quotes_gpc Off áÅéÇãªé mysql_real_escape_string á·¹. àÁ×èÍ·Ó¡ÒûÃѺáµè§ php.ini ä´é´Ñ§¹ÕéáÅéÇ ãËéÅͧ restart web server áÅéÇàÃÕ¡àÇçºà¾¨´ÙãËÁè ¨Ð¾ºä´é·Ñ¹·ÕàÅÂÇèÒ ·Õè¼èÒ¹ÁÒàÃÒ·Ó§Ò¹ÅÐàÍÕ´á¤èä˹ «Ö觡çµéͧµÒÁá¡éä¢¡Ñ¹ä» Credit : //www.weliketochoice.com |
ÊÕè¼Ùé¤ØÁ¡®ÃÒªÊÕËì½Í·ͧ
Rss Feed Smember ¼ÙéµÔ´µÒÁºÅçÍ¡ : 1 ¤¹ [?] All Blog |
||
Pantip.com | PantipMarket.com | Pantown.com | © 2004 BlogGang.com allrights reserved. |
ÊØâ¤è ÁÑè¡æ