$lang = explode("/", $_SERVER["SCRIPT_NAME"]); $lang = $lang[2]; if($lang == "th"){ include "lang/th.php"; }elseif($lang == "en"){ include "lang/en.php"; }elseif($lang == "jp"){ include "lang/jp.php"; } ?>