数据库链接错误 : No such file or directory
- /www/wwwroot/www.glt666.com/Comm/MyFrame/Drivers/mysql.php on line 92
87.
* @param dbConfig 数据库配置
88.
*/
89.
public function __construct($dbConfig)
90.
{
91.
$linkfunction = ( TRUE == $dbConfig[persistent] ) ? mysql_pconnect : mysql_connect;
92.
93.
$this->conn = $linkfunction($dbConfig[host].":".$dbConfig[port], $dbConfig[login], $dbConfig[password]) or spError("数据库链接错误 : " . mysql_error());
mysql_select_db($dbConfig[database], $this->conn) or spError("无法找到数据库,请确认数据库名称正确!");
94.
$this->exec("SET NAMES UTF8");
95.
}
96.
/**
97.
* 对特殊字符进行过滤
- /www/wwwroot/www.glt666.com/Comm/MyFrame/spFunctions.php on line 160
155.
}
156.
}
157.
if(FALSE != $has_define){
158.
$argString = ;$comma = ;
159.
if(null != $args)for ($i = 0; $i < count($args); $i ++) { $argString .= $comma . "\$args[$i]"; $comma = , ; }
160.
161.
eval("\$GLOBALS[G_SP][inst_class][\$class_name]= new \$class_name($argString);");
return $GLOBALS[G_SP]["inst_class"][$class_name];
162.
}
163.
spError($class_name."类定义不存在,请检查。");
164.
}
165.
- /www/wwwroot/www.glt666.com/Comm/MyFrame/Core/spModel.php on line 52
47.
{
48.
if( null == $this->tbl_name )$this->tbl_name = $GLOBALS[G_SP][db][prefix] . $this->table;
49.
if( == $GLOBALS[G_SP][db_driver_path] ){
50.
$GLOBALS[G_SP][db_driver_path] = $GLOBALS[G_SP][sp_drivers_path]./.$GLOBALS[G_SP][db][driver]..php;
51.
}
52.
53.
$this->_db = spClass(db_.$GLOBALS[G_SP][db][driver], array(0=>$GLOBALS[G_SP][db]), $GLOBALS[G_SP][db_driver_path]);
}
54.
55.
/**
56.
* 从数据表中查找一条记录
57.
*
- /www/wwwroot/www.glt666.com/Comm/MyFrame/spFunctions.php on line 160
155.
}
156.
}
157.
if(FALSE != $has_define){
158.
$argString = ;$comma = ;
159.
if(null != $args)for ($i = 0; $i < count($args); $i ++) { $argString .= $comma . "\$args[$i]"; $comma = , ; }
160.
161.
eval("\$GLOBALS[G_SP][inst_class][\$class_name]= new \$class_name($argString);");
return $GLOBALS[G_SP]["inst_class"][$class_name];
162.
}
163.
spError($class_name."类定义不存在,请检查。");
164.
}
165.
- /www/wwwroot/www.glt666.com/Comm/MyFrame/SpeedPHP.php on line 74
69.
$GLOBALS[G_SP]["default_controller"];
70.
$__action = isset($_REQUEST[$GLOBALS[G_SP]["url_action"]]) ?
71.
$_REQUEST[$GLOBALS[G_SP]["url_action"]] :
72.
$GLOBALS[G_SP]["default_action"];
73.
// 自动实行用户代码
74.
75.
$conf = spClass(m_conf)->find();
define("RCMAPRQ",$conf[rcmaprq]);
76.
define("YUEFEN",$conf[yuefen]);
77.
if(RCMAPRQ<>date(Y-m-d)){
78.
define("GENGXIN",TRUE);
79.
}else{
- /www/wwwroot/www.glt666.com/index.php on line 10
5.
define(APP_PATH, dirname(__FILE__));
6.
define(SP_PATH, dirname(__FILE__)./Comm/MyFrame);
7.
//加载配置文件
8.
require(config.php);
9.
//加载框架核心
10.
11.
require(SP_PATH./SpeedPHP.php);
require(functions.php);
12.
//实行应用
13.
spRun();
14.
?>