求大家帮忙解决这个问题啊。奇怪的php空白 我是这个网站空间提供商,http://fuhui.com.canfeel.net/plus/list.php?tid=1其他页面都没有问题,就是当tid=6或者7的时候有问题,也就是点击会员中心,或者留言板,就是空白,其他都没有任何问题。请各位大侠帮忙解决啊。感谢,超级感谢。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 看代码里tid的相关处理才看得到光看个页面看不出来什么的 看到有人回复了,真实激动啊,具体list里面的代码如下:<?php if($_GET['tid']==8) { header("Location:cjqg.php"); }?><?phprequire_once(dirname(__FILE__)."/../include/common.inc.php");$t1 = ExecTime();$tid = (isset($tid) && is_numeric($tid) ? $tid : 0);$channelid = (isset($channelid) && is_numeric($channelid) ? $channelid : 0);if($tid==0 && $channelid==0) die(" Request Error! ");//如果指定了内容模型ID但没有指定栏目ID,那么自动获得为这个内容模型的第一个顶级栏目作为频道默认栏目if(!empty($channelid) && empty($tid)){ $tinfos = $dsql->GetOne("Select tp.id,ch.issystem From `#@__arctype` tp left join `#@__channeltype` ch on ch.id=tp.channeltype where tp.channeltype='$channelid' And tp.reid=0 order by sortrank asc"); if(!is_array($tinfos)) die(" No catalogs in the channel! "); $tid = $tinfos['id'];}else{ $tinfos = $dsql->GetOne("Select ch.issystem From `#@__arctype` tp left join `#@__channeltype` ch on ch.id=tp.channeltype where tp.id='$tid' ");}//企业建站版不支单表模型if($tinfos['issystem']==-1){ echo "Not Support!"; exit();}include(DEDEINC."/arc.listview.class.php");$lv = new ListView($tid);if($lv->IsError) { ParamError();}$lv->Display();?> http://www.bjzrwd.com/adm_cp/这个页面也出现空白的问题。代码如下:<?phprequire_once(dirname(__FILE__)."/config.php");require_once(DEDEINC.'/dedetag.class.php');$defaultIcoFile = DEDEROOT.'/data/admin/quickmenu.txt';$myIcoFile = DEDEROOT.'/data/admin/quickmenu-'.$cuserLogin->getUserID().'.txt';if(!file_exists($myIcoFile)) $myIcoFile = $defaultIcoFile;require(DEDEADMIN.'/inc/inc_menu_map.php');if($cuserLogin->userType >= 10){ include(DEDEADMIN.'/templets/index2.htm'); exit();}else{ include(DEDEADMIN.'/templets/index1.htm'); exit();}?> 服务器的配置为:widows2003+iis6+php5.2.6+msql5.0虚拟主机系统为慧林虚拟主机管理系统。 $lv->Display();var_dump($lv);有值吗? 页面开头加error_reporting(E_ALL); 第二个页面的问题require_once(dirname(__FILE__)."/config.php");require_once(DEDEINC.'/dedetag.class.php');这两行一个是双引号一个是单个绰号 是不是要改改啊不有你看看这句子的判断if(!file_exists($myIcoFile)) $myIcoFile = $defaultIcoFile;你的'/data/admin/quickmenu.txt'或者'/data/admin/quickmenu-'.$cuserLogin->getUserID().'.txt'有内容吗???我学的是C++ php不会仅供参考 http://www.bjzrwd.com/adm_cp/可以啊他跳转到了http://www.bjzrwd.com/adm_cp/login.php?gotopage=%2Fadm_cp%2Findex.php 还是去php.ini里配置一下error_log,然后看一下错误输出吧。 $cuserLogin 这个在哪里定义的?没看到代码里面有定义。应该是在你包含的文件里定义的吧?你在if($cuserLogin->userType >= 10) 之前和里面分别echo 一些东西看看是不是都执行了?如果if里面的不执行证明问题出在$cuserLogin这里了。 如何发送和接受telnet命令? 求助,请高数指一下吧。 div hidden 换成none 数据库初始化父类继承的问题 求一个正则的写法 php在双网卡双数据库(MSSQL和SyBase)的电脑访问数据库的问题 高手帮帮忙:如何把中文字符转换成十六进制字符呢? 一不小心弄到了kk66.com(雅客)的一部分代码,大家看看希望有帮助 怎么样使登陆数据在网页间流动?紧急求就!!在线等候 ckeditor 4.5.8 的上传处理页 upload.php里应该怎么写,才能上传到目录下? 如何用.sql文件还原数据库 不用数据库,使用什么格式文件储存临时数组?
光看个页面看不出来什么的
<?php
if($_GET['tid']==8)
{
header("Location:cjqg.php");
}
?>
<?php
require_once(dirname(__FILE__)."/../include/common.inc.php");$t1 = ExecTime();$tid = (isset($tid) && is_numeric($tid) ? $tid : 0);$channelid = (isset($channelid) && is_numeric($channelid) ? $channelid : 0);if($tid==0 && $channelid==0) die(" Request Error! ");//如果指定了内容模型ID但没有指定栏目ID,那么自动获得为这个内容模型的第一个顶级栏目作为频道默认栏目
if(!empty($channelid) && empty($tid))
{
$tinfos = $dsql->GetOne("Select tp.id,ch.issystem From `#@__arctype` tp left join `#@__channeltype` ch on ch.id=tp.channeltype where tp.channeltype='$channelid' And tp.reid=0 order by sortrank asc");
if(!is_array($tinfos)) die(" No catalogs in the channel! ");
$tid = $tinfos['id'];
}
else
{
$tinfos = $dsql->GetOne("Select ch.issystem From `#@__arctype` tp left join `#@__channeltype` ch on ch.id=tp.channeltype where tp.id='$tid' ");
}//企业建站版不支单表模型
if($tinfos['issystem']==-1)
{
echo "Not Support!";
exit();
}include(DEDEINC."/arc.listview.class.php");
$lv = new ListView($tid);if($lv->IsError) {
ParamError();
}$lv->Display();?>
require_once(dirname(__FILE__)."/config.php");
require_once(DEDEINC.'/dedetag.class.php');
$defaultIcoFile = DEDEROOT.'/data/admin/quickmenu.txt';
$myIcoFile = DEDEROOT.'/data/admin/quickmenu-'.$cuserLogin->getUserID().'.txt';
if(!file_exists($myIcoFile)) $myIcoFile = $defaultIcoFile;
require(DEDEADMIN.'/inc/inc_menu_map.php');if($cuserLogin->userType >= 10)
{
include(DEDEADMIN.'/templets/index2.htm');
exit();
}
else
{
include(DEDEADMIN.'/templets/index1.htm');
exit();
}?>
require_once(dirname(__FILE__)."/config.php");
require_once(DEDEINC.'/dedetag.class.php');
这两行一个是双引号一个是单个绰号 是不是要改改啊
不有你看看这句子的判断
if(!file_exists($myIcoFile)) $myIcoFile = $defaultIcoFile;
你的'/data/admin/quickmenu.txt'
或者'/data/admin/quickmenu-'.$cuserLogin->getUserID().'.txt'
有内容吗???
我学的是C++ php不会仅供参考
可以啊他跳转到了http://www.bjzrwd.com/adm_cp/login.php?gotopage=%2Fadm_cp%2Findex.php