數據庫鏈接錯誤 : Too many connections
- /www/wwwroot/m.yyyhwh.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/m.yyyhwh.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/m.yyyhwh.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/m.yyyhwh.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/m.yyyhwh.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. 
// 自動執(zhí)行用戶代碼
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/m.yyyhwh.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('icopylock.com.php');
12. 
require('functions.php');
13. 
//執(zhí)行應用
14. 
spRun();
15. 
?>