function.inc.php 的398行处(应该是结束处)有回车符
解决方案 »
- 做网址站请问如何排成规则的几列几行?
- 如何在点击提交按钮时候执行以下语句?新手求救
- 各位,新春快乐!
- php购物车
- mysql 数据库同步可以同步过时信息么?
- The filename D:\\\\uswer1.xls is not readable
- 正则表达式取得某网页中部分内容
- 如何把两张图片合并,生成第三张图片
- 请问如何自动填写模式对话框形式的网页表单啊?
- include 比 include_once 快吗?
- 大家好,我是新学php的,遇到点问题需要帮助.
- Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in
<?php
session_start();
ob_start();.........
?>这样即可解决。
{
print $this->parse($target, $handle, $append); <=现在说这一行有错误!
return false;
}
news.php中用了$tpl->pparse("output","myindex");
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
(就是这一行= >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;
}
因为是虚拟主机,屏蔽了phpinfo()等等函数!
我想应该是4.3.11以下版本!
回复人: coolstr(占卜師oοΟ) ( ) 信誉:105 2005-10-24 16:58:00 得分: 0 把头部改为:
<?php
session_start();
ob_start();.........
?>这样即可解决。--------------------------------------------------------
现在加上
<?php
session_start();
ob_start();.........
?>
我现在想知道的是
function pparse($target, $handle, $append = false)
{
print $this->parse($target, $handle, $append);《=这儿为什么会出错???
return false;
}请求xuzuning(唠叨)!!!
(就是这一行= >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(); 这一句。