function.inc.php 的398行处(应该是结束处)有回车符
解决方案 »
- 小女求教windows7的PHP配置问题 急!!有分必散!
- <?php?>怎么影响其外的html代码输出?
- 关于读取域名的问题
- 怎样在<input type=file>里过滤上传文件的类型
- ip比较问题,SELECT出来不只一条记录,大家看看。
- 数据库的插入给一些意见。
- 我该怎样配置phpmyadmin 2.5.0 RC2
- ●●●各位虾哥:像这种变量带来带去,不知你们有什么好的经验?
- 国天同庆,偶相信偶一定会学好php的 ( 散分 )
- 这段PHP代码怎么写成能输出的结果和JS一样?
- 大家好,我是新学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(); 这一句。