【php开源代码栏目提醒】:网学会员为需要php开源代码的朋友们搜集整理了langsettings.php相关资料,希望对各位网友有所帮助!
<?php
$lang=@file_get_contents("lang.tmp");
@include("lang/languages.php");
@include("lang/en.php");
@include("lang/$lang.php");
if($lang=="zh")
{
header("Content-Type: text/html; charset=gb2312");
}
else if($lang=="jp")
{
header("Content-Type: text/html; charset=shift-jis");
}
?>