php运行奇怪问题,求救,急~~~~~~~~

papayo 2003-11-24 09:40:25
File 'c:\mysql\share\charsets\?.conf' not found (Errcode: 2) Character set '#24' is not a compiled character set and is not specified in the 'c:\mysql\share\charsets\Index' file

这个错误原因是为什么?因为我的mysql装在f盘,而非c盘
所以不明白,谢谢回答
...全文
31 12 打赏 收藏 转发到动态 举报
写回复
用AI写文章
12 条回复
切换为时间正序
请发表友善的回复…
发表回复
redact 2003-12-09
  • 打赏
  • 举报
回复
my.cnf或者my.ini中
把 default-character-set =gb2312 去掉 就不会出现上述错误提示

另外,你用的apache是2.0.xx的版本吧
papayo 2003-12-08
  • 打赏
  • 举报
回复
php程序如何情况下会出现这样的问题呢?
这个出错是什么意思?
egoxu 2003-12-01
  • 打赏
  • 举报
回复
不应该阿,mysql安在那都不影响阿,你再看看php.ini是在不幸的话,在一个,你是不是你的php程序出错阿
ustcfrank 2003-11-25
  • 打赏
  • 举报
回复
把你代码贴出来
papayo 2003-11-25
  • 打赏
  • 举报
回复
哈哈,basedir我 早就设置成f:/mysql
所以还是没解决
papayo 2003-11-25
  • 打赏
  • 举报
回复
以前在apache都是没问题的,在iis下面出现这样的问题
papayo 2003-11-25
  • 打赏
  • 举报
回复

<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="css.css" rel="stylesheet" type="text/css">
<body bgcolor="#F2F6E8" leftmargin="0" topmargin="0">
<?
$database_link =mysql_connect("202.192.156.202","root","");
mysql_select_db("fin230",$database_link);
$query = "select * from thread order by replycount desc";
$result =mysql_query($query,$database_link);
$i=1;
?>
<table width="1009" border="0" cellspacing="0" cellpadding="2" onMouseOver="this.style.cursor='hand'">
<?
while($row =mysql_fetch_row($result))
{


if($i<=7){
?>
<tr onMouseOver="this.style.backgroundColor='#DAEBB5'" onMouseOut="this.style.backgroundColor=''">
<?
print "<a href=http://campus.stu.edu.cn/forum/showthread.php?threadid=".$row[0]." target=_blank><td width=1003 onMouseOver=\"this.style.backgroundColor=''\" onMouseOut=\"this.style.backgroundColor=''\">";

print " :: <font color='#FF6600'>".$row[1]."</font>";

print "</a></td>";
?>
</tr>
<?
$i++;
}
}
mysql_close($database_link);

?>
<table width="1009" border="0" cellspacing="0" cellpadding="2" onMouseOver="this.style.cursor='hand'">
<?
while($row =mysql_fetch_row($result))
{
$count=$row[6];
$title=$row[7];
$pos=strrpos($title,"[/QUOTE]");
if($pos!=0){
$title=substr($title,$pos+8,(strlen($title)-1));
}
if(strlen($title)>=70){
$title=substr($title,0,70).".....";
}
if($row[6]!=0){
$img="[包含图片]";
}else{
$img="";
}
if($i<=4){
?>
<tr onMouseOver="this.style.backgroundColor='#DAEBB5'" onMouseOut="this.style.backgroundColor=''">
<?
print "<a href=http://campus.stu.edu.cn/forum/showthread.php?postid=".$row[0]."#post".$row[0]." target=_blank><td width=1003 onMouseOver=\"this.style.backgroundColor=''\" onMouseOut=\"this.style.backgroundColor=''\">";

print " :: <font color='#FF6600'>".$title."</font>".$img."<font color='#040404'>(此主题被回复:".$count.")</font>";

print "</a></td>";
?>
</tr>
<?
$i++;
//}
}
}
mysql_close($database_link);

?>
<tr onMouseOver="this.style.backgroundColor='#DAEBB5'" onMouseOut="this.style.backgroundColor=''">
<a href="http://campus.stu.edu.cn/forum" target="_blank" ><td align="left">                                            更多...</td></a>
</tr>
</table>
</table>
ustcfrank 2003-11-24
  • 打赏
  • 举报
回复
检查一下windows目录下有个my.ini里面
有一行

basedir=C:/mysql

如果basedir是C:/mysql

改成f:\mysql

试试

问题是:apache好用,IIS不好用,不知道为什么.......


ustcfrank 2003-11-24
  • 打赏
  • 举报
回复
怎么出现这个错误的?
papayo 2003-11-24
  • 打赏
  • 举报
回复
问题提示为什么出现'c:\mysql呢?
也起码应该是f:\mysql吧
papayo 2003-11-24
  • 打赏
  • 举报
回复
哪里出现了汉字?你是说代码出现了汉字?
可是运行在apache没问题哦,运行在iis里出现了这样的问题了
shanhe 2003-11-24
  • 打赏
  • 举报
回复
出现了非法字符?是不是包含汉字?

21,891

社区成员

发帖
与我相关
我的任务
社区描述
从PHP安装配置,PHP入门,PHP基础到PHP应用
社区管理员
  • 基础编程社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧