waha,同仁同仁。
这两天我也在做我发布的论坛的繁体版。一个最简单的方法,就是用ob进行转换然后全部输出。不知道这样会不会影响效率。

解决方案 »

  1.   

    缺少ob_end_clean();
    <?  
    //index.php  
    ob_start();  
    include("index0.php");//主页文件  
    include("gb2big5.php");//简繁翻译文件  
    $contents  =  ob_get_contents();  ob_end_clean(); //加在这里,你必须清除缓存的内容和关闭输出缓存$contents=gb2big5($contents);  
    print($contents);  
    ?>  
      

  2.   

    <?  
    //index.php  
    ob_start();  
    include("index0.php");//主页文件  
    include("gb2big5.php");//简繁翻译文件  
    $contents  =  ob_get_contents();  ob_end_clean(); //加在这里,你必须清除缓存的内容和关闭输出缓存$contents=gb2big5($contents);  
    print($contents);  
    ?> 
    这样,速度不考虑了?
      

  3.   

    哈哈,刚自己翻开了中文手册,也是查出了ob_end_clean();
    嘿嘿,一切OK了,结贴...
      

  4.   

    http://www.21php.com/tutorial/tutorial.php?tid=96
    有这样一个帖子。大家看看。
    我搞不懂,他在开始就require了那个php文件,在后面才echo那段文字,按理是require.php先被执行的,怎么可能后面输出的也被改变了呢?
      

  5.   

    require只是包含,不会执行吧,include才会执行