rt要本地可以正常运行,发布到服务器上后就出问题了
程序用到 Discuz 7.1 的uc, 本地编码为 utf-8 服务器编码为 gbk
不过在上传上已经把所有的编码都改成gbk了。路径也没问题部分代码如下:<head>
<?php
//chdir("../bbs");
//define('CURSCRIPT', 'save');
Session_start();
require_once '../bbs/include/common.inc.php';$_Title_End = "大城星闪耀";
require_once("data/common.php");
include("data/user.php");
?>
<!-- InstanceBeginEditable name="EditRegion_Include" -->
<!--
<?php
// 在此添加当前页面须要使用的文件
include("data/vote.php");
$sql = "SELECT * FROM {$tablepre}vote ORDER BY ADDDATE DESC, topten DESC, topten_xy DESC, topthree DESC, topthree_xy DESC";
$rs = $db->query($sql);
while($row=$db->fetch_array($rs)){
$_vote_all[]=ProcessVote($row);
}$sql = "SELECT * FROM {$tablepre}vote order by topten desc, topten_xy desc, topthree desc, topthree_xy desc";
$rs = $db->query($sql);
while($row=$db->fetch_array($rs)){
$_vote_all2[]=ProcessVote($row);
}
....
运行后什么错误提示也没有, 就是无法显示该页。。
那位好心人帮帮忙吧!!!
程序用到 Discuz 7.1 的uc, 本地编码为 utf-8 服务器编码为 gbk
不过在上传上已经把所有的编码都改成gbk了。路径也没问题部分代码如下:<head>
<?php
//chdir("../bbs");
//define('CURSCRIPT', 'save');
Session_start();
require_once '../bbs/include/common.inc.php';$_Title_End = "大城星闪耀";
require_once("data/common.php");
include("data/user.php");
?>
<!-- InstanceBeginEditable name="EditRegion_Include" -->
<!--
<?php
// 在此添加当前页面须要使用的文件
include("data/vote.php");
$sql = "SELECT * FROM {$tablepre}vote ORDER BY ADDDATE DESC, topten DESC, topten_xy DESC, topthree DESC, topthree_xy DESC";
$rs = $db->query($sql);
while($row=$db->fetch_array($rs)){
$_vote_all[]=ProcessVote($row);
}$sql = "SELECT * FROM {$tablepre}vote order by topten desc, topten_xy desc, topthree desc, topthree_xy desc";
$rs = $db->query($sql);
while($row=$db->fetch_array($rs)){
$_vote_all2[]=ProcessVote($row);
}
....
运行后什么错误提示也没有, 就是无法显示该页。。
那位好心人帮帮忙吧!!!
看看这个 http://xiehx163.blog.163.com/blog/static/61466796201010293231749/
改了 cache_settings.php 过不了多久又打不开了 得重新修改cache_settings.php 很麻烦。还有人来回答吗?