数据库链接错误/无法找到数据库 : malformed database schema - unable to open a temporary database file for storing temporary tables
- /www/wwwroot/kingflex.com.cn/JedooPHP/Drivers/sqlite.php on line 165
160.
*/
161.
public function __construct($dbConfig)
162.
{
163.
if(!function_exists('sqlite_open'))spError('PHP环境未安装Sqlite函数库!');
164.
$linkfunction = ( TRUE == $dbConfig['persistent'] ) ? 'sqlite_popen' : 'sqlite_open';
165.
166.
if (! $this->conn = $linkfunction($dbConfig['host'], 0666, $sqliteerror))JError('数据库链接错误/无法找到数据库 : '. $sqliteerror);
}
167.
168.
/**
169.
* 对特殊字符进行过滤
170.
*
- /www/wwwroot/kingflex.com.cn/JedooPHP/JFunctions.php on line 207
202.
$argString .= $comma . "\$args[$i]"; $comma = ', ';
203.
}
204.
}
205.
206.
if($registerGlobal) {
207.
208.
eval("\$GLOBALS['G_JCONFIG']['class_instances'][\$className]= new \$className($argString);");
return $GLOBALS['G_JCONFIG']["class_instances"][$className];
209.
}
210.
else {
211.
return new $className($argString);
212.
}
- /www/wwwroot/kingflex.com.cn/JedooPHP/MVC/JModel.php on line 56
51.
{
52.
if( null == $this->tbl_name )$this->tbl_name = $GLOBALS['G_JCONFIG']['db']['prefix'] . $this->table;
53.
if( '' == $GLOBALS['G_JCONFIG']['db_driver_path'] ){
54.
$GLOBALS['G_JCONFIG']['db_driver_path'] = $GLOBALS['G_JCONFIG']['drivers_dir'].'/'.$GLOBALS['G_JCONFIG']['db']['driver'].'.php';
55.
}
56.
57.
$this->_db = JLoadClass('db_'.$GLOBALS['G_JCONFIG']['db']['driver'], array(0=>$GLOBALS['G_JCONFIG']['db']), $GLOBALS['G_JCONFIG']['db_driver_path']);
}
58.
59.
/**
60.
* 开始事务
61.
*/
- /www/wwwroot/kingflex.com.cn/JedooPHP/JFunctions.php on line 207
202.
$argString .= $comma . "\$args[$i]"; $comma = ', ';
203.
}
204.
}
205.
206.
if($registerGlobal) {
207.
208.
eval("\$GLOBALS['G_JCONFIG']['class_instances'][\$className]= new \$className($argString);");
return $GLOBALS['G_JCONFIG']["class_instances"][$className];
209.
}
210.
else {
211.
return new $className($argString);
212.
}
- /www/wwwroot/kingflex.com.cn/modules/categories/categories.php on line 46
41.
else {
42.
$cond['category_code'] = $category_id;
43.
}
44.
$cond['language'] = $language;
45.
46.
47.
$categories = JLoadClass('categories');
if($category = $categories->getOne($cond)) {
48.
if($category['category_type'] == 'links' && $category['link_url']) {
49.
$this->redirect($category['link_url']);
50.
}
51.
else if($category['category_type'] == 'models') {
- /www/wwwroot/kingflex.com.cn/JedooPHP/JFunctions.php on line 31
26.
eval($GLOBALS['G_JCONFIG']["dispatcher_error"]);
27.
exit;
28.
}
29.
30.
// 执行用户代码
31.
32.
$__handle_controller->$__actionFunc();
33.
//显示前执行自定义代码
34.
JInject("before_display");
35.
36.
// 控制器程序运行完毕,进行模板的自动输出
- /www/wwwroot/kingflex.com.cn/index.php on line 110
105.
if(count($server_info) > 1) {
106.
$server_domain = $server_info[count($server_info)-2];
107.
define('DOMAIN', $server_domain);
108.
}
109.
110.
111.
JStart();
?>