Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

急救帖<<<原本一切都OK,最后还是不OK>>>

[复制链接]
pellucid 发表于 2006-6-3 12:37:07 | 显示全部楼层 |阅读模式
好不容易把论坛从ASP+SQLServer的转成PHP+MySql(Discuz!)

在本地搭建成功,经测试所有用户及管理员功能无误
随后租用了空间

网页顺利上传,数据库成功导入,域名成功绑定并解析~~~~好像一切OK~~~

可将域名输入IE地址栏后,不再OK了~~网页报错~以下是错误显示:

RE uid='$discuz_uid'", 'UNBUFFERED'); } } $sessionupdated = 1; } function updatemodworks($modaction, $posts = 1) { global $modworkstatus, $db, $tablepre, $discuz_uid, $timestamp, $_DCACHE; $today = gmdate('Y-m-d', $timestamp + $_DCACHE['settings']['timeoffset'] * 3600); if($modworkstatus && $modaction && $posts) { $db->query("UPDATE {$tablepre}modworks SET count=count+1, posts=posts+'$posts' WHERE uid='$discuz_uid' AND modaction='$modaction' AND dateline='$today'"); if(!$db->affected_rows()) { $db->query("INSERT INTO {$tablepre}modworks (uid, modaction, dateline, count, posts) VALUES ('$discuz_uid', '$modaction', '$today', 1, '$posts')"); } } } ?>Can not write to cache files, please check directory ./forumdata/ and ./forumdata/cache/ .



改的和数据库服务器一致了。但是又报这个错了~~~怎么会餐can not write to cache files呢???晕倒~~~

[ 本帖最后由 pellucid 于 2006-6-3 12:38 编辑 ]
 楼主| pellucid 发表于 2006-6-3 13:38:05 | 显示全部楼层
我本地是win2003。服务器是linux~~~所以需要改CHMOD

现在论坛成功显示了~~~~还有一个大问题~~~所有论坛里的中文都是乱码~~怎么办??

还有每次打开论坛,论坛最上面都会有:

RE uid='$discuz_uid'", 'UNBUFFERED'); } } $sessionupdated = 1; } function updatemodworks($modaction, $posts = 1) { global $modworkstatus, $db, $tablepre, $discuz_uid, $timestamp, $_DCACHE; $today = gmdate('Y-m-d', $timestamp + $_DCACHE['settings']['timeoffset'] * 3600); if($modworkstatus && $modaction && $posts) { $db->query("UPDATE {$tablepre}modworks SET count=count+1, posts=posts+'$posts' WHERE uid='$discuz_uid' AND modaction='$modaction' AND dateline='$today'"); if(!$db->affected_rows()) { $db->query("INSERT INTO {$tablepre}modworks (uid, modaction, dateline, count, posts) VALUES ('$discuz_uid', '$modaction', '$today', 1, '$posts')"); } } } ?>

这些东西出现~~~~奇怪了~~~
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-12-26 04:14 , Processed in 0.017920 second(s), 4 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表