求大家帮忙解决这个问题啊。奇怪的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这里了。 PHP正则问题 去掉字符串前后空白 为什么我的PHP 浏览器直接显示HTML代码 PHP md5验证登录问题 如何实现选中正行 为什么现在好多人都不结贴!!! up有分 错在哪里了? PHP实现免费短信发送的技术细节,请高手指点一二! 热烈讨论ASP、PHP、JSP区别 代码长度太长怎么添加连接符?把一行代码变为多行代码? 如何用.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