原来配好的一个在RH7.3下的phpBB系统,换到新安装的RH8环境下(Apache MySQL都是新安装的,其中MySQL的数据库是直接拷贝phpBB目录下库文件添加的),竟然报
“temples->makefile(): File ./temples/subSliver/over_header.tpl is not exist.”明明那个文件在嘛,而且权限也没问题,就是说找不到呢。看了Temples class的源代码,就是一个file_exist()函数的错误信息嘛。 难道是phpBB_root设置的不对吗,那位同志告诉一下,phpBB的配置文件除了config.php,还有在哪里设置啊?
[quote:da39dacac7=".ANKO."]原来配好的一个在RH7.3下的phpBB系统,换到新安装的RH8环境下(Apache MySQL都是新安装的,其中MySQL的数据库是直接拷贝phpBB目录下库文件添加的),竟然报
“temples->makefile(): File ./temples/subSliver/over_header.tpl is not exist.”明明那个文件在嘛,而且权限也没问题,就是说找不到呢。看了Temples class的源代码,就是一个file_exist()函数的错误信息嘛。 难道是phpBB_root设置的不对吗,那位同志告诉一下,phpBB的配置文件除了config.php,还有在哪里设置啊?[/quote]
问题解决!!!!
原因是php4.2.3的那个file_exists()函数有问题,对于型如“./filename”的文件名,总是返回FALSE,不信你试试:
<?php
$filename = "./test.php";
if (file_exists($filename)) {
echo "$filename exists!"
} else {
echo "$filename not exists!"
}
?>