数据库链接错误 : Connection refused
- /www/wwwroot/www.prszc.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.prszc.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.prszc.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.prszc.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.prszc.com/Comm/MyFrame/SpeedPHP.php on line 86
81.
$__action = isset($_REQUEST[$GLOBALS['G_SP']["url_action"]]) ?
82.
$_REQUEST[$GLOBALS['G_SP']["url_action"]] :
83.
$GLOBALS['G_SP']["default_action"];
84.
85.
// 自动执行用户代码
86.
87.
$conf = spClass('m_conf')->find();
define("RCMAPRQ",$conf['rcmaprq']);
88.
define("YUEFEN",$conf['yuefen']);
89.
if(RCMAPRQ<>date('Y-m-d')){
90.
define("GENGXIN",TRUE);
91.
}else{
- /www/wwwroot/www.prszc.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');
//执行应用
12.
spRun();
13.
?>