function.inc.php 的398行处(应该是结束处)有回车符

解决方案 »

  1.   

    把头部改为:
    <?php
    session_start();
    ob_start();.........
    ?>这样即可解决。
      

  2.   

    function.inc.php 的398行处(应该是结束处)有回车符 是有个回车符,我都查了几次,这次查出来了。现在文件:Template.inc.php中有问题:function pparse($target, $handle, $append = false)
    {
    print $this->parse($target, $handle, $append); <=现在说这一行有错误!
    return false;
    }
    news.php中用了$tpl->pparse("output","myindex");
      

  3.   

    在header使用之前,绝对不允许有任何输出。
      

  4.   

    print $this->parse($target, $handle, $append); <=现在说这一行有错误!错误信息
      

  5.   


    Warning: Cannot modify header information - headers already sent by (output started at /home/uk5508845/htdocs/inc/Template.inc.php:187) 
    (就是这一行=>print $this->parse($target,$handle,$append);)
    in /home/uk3006556/htdocs/news.php on line 200
      

  6.   

    Warning:  Cannot  modify  header  information  -  headers  already  sent  by  (output  started  at  /home/uk5508845/htdocs/inc/Template.inc.php:187)    
    (就是这一行=  >print  $this->parse($target,$handle,$append);)  
    in  /home/uk5508845/htdocs/news.php  on  line  200  这是类函数不会有空格和输出啊。function pparse($target, $handle, $append = false)
    {
    print $this->parse($target, $handle, $append);
    return false;
    }
      

  7.   

    等等……升级前就可以吗?什么版本的php可以输出回车后还能输出header的??
      

  8.   

    等等……升级前就可以吗?什么版本的php可以输出回车后还能输出header的??
    因为是虚拟主机,屏蔽了phpinfo()等等函数!
      

  9.   

    包括 phpversion();
    我想应该是4.3.11以下版本!
      

  10.   

    怎么就没有人相信俺呢?------------------------------------------------------
    回复人: coolstr(占卜師oοΟ) ( ) 信誉:105  2005-10-24 16:58:00  得分: 0  把头部改为:
    <?php
    session_start();
    ob_start();.........
    ?>这样即可解决。--------------------------------------------------------
      
     
      

  11.   

    程序头先前本来没有加session_start();
    现在加上
    <?php
    session_start();
    ob_start();.........
    ?>
    我现在想知道的是
    function pparse($target, $handle, $append = false)
    {
    print $this->parse($target, $handle, $append);《=这儿为什么会出错???
    return false;
    }请求xuzuning(唠叨)!!!
      

  12.   

    Warning:  Cannot  modify  header  information  -  headers  already  sent  by  (output  started  at  /home/uk5508845/htdocs/inc/Template.inc.php:187)    
    (就是这一行=  >print  $this->parse($target,$handle,$append);)  
    in  /home/uk5508845/htdocs/news.php  on  line  200
    ---------------------------------------------------------
    function pparse($target, $handle, $append = false)
    {
    print $this->parse($target, $handle, $append);《=这儿为什么会出错???
    return false;
    }
    =====================================================================
    print $this->parse($target, $handle, $append);《=这儿为什么会出错???
    这个不是这里出错,这里执行的print,当然就会有输出,也就理所当然会出错了。
    解决办法:
    1、你的header()必须写在 $tpl->pparse("output","myindex"); 这一句前面。
    2、在程序最开头加上 ob_start(); 这一句。