SET NAMES UTF8
执行错误: MySQL server has gone away
- D:\wwwroot\adeeri2\wwwroot\include\mysql.php on line 39
34.
$this->arrSql[] = $sql;
35.
if( $result = mysql_query($sql, $this->conn) ){
36.
return $result;
37.
}else{
38.
if(mysql_error()!=''){
39.
40.
syError("{$sql}<br />执行错误: " . mysql_error());
}else{
41.
return TRUE;
42.
}
43.
}
44.
}
- D:\wwwroot\adeeri2\wwwroot\include\mysql.php on line 63
58.
$linkfunction = ( TRUE == $dbConfig['persistent'] ) ? 'mysql_pconnect' : 'mysql_connect';
59.
$this->conn = $linkfunction($dbConfig['host'].":".$dbConfig['port'], $dbConfig['login'], $dbConfig['password']);
60.
if(!$this->conn || !mysql_select_db($dbConfig['database'], $this->conn)){
61.
echo '<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />数据库无法链接,如果您是第一次使用,请先执行<a href="install">安装程序</a><br /><br /><a href="http://wdoyo.com" target="_blank">DoYo通用建站程序 wdoyo.com</a>';exit;
62.
}
63.
64.
$this->exec("SET NAMES UTF8");
if($this->version() > '5.0.1') {
65.
$this->exec("set sql_mode=''");
66.
}
67.
}
68.
public function version() {
- D:\wwwroot\adeeri2\wwwroot\include\Functions.php on line 95
90.
}
91.
}
92.
if(FALSE != $has_define){
93.
$argString = '';$comma = '';
94.
if(null != $args)for ($i = 0; $i < count($args); $i ++) { $argString .= $comma . "\$args[$i]"; $comma = ', ';}
95.
96.
eval("\$GLOBALS['G_DY']['inst_class'][\$class_name]= new \$class_name($argString);");
return $GLOBALS['G_DY']["inst_class"][$class_name];
97.
}
98.
syError($class_name."类定义不存在,请检查。");
99.
}
100.
function curl_get($url) {
- D:\wwwroot\adeeri2\wwwroot\include\syModel.php on line 17
12.
{
13.
if( null == $this->tbl_name )$this->tbl_name = $GLOBALS['G_DY']['db']['prefix'] . $this->table;
14.
if( '' == $GLOBALS['G_DY']['db_driver_path'] ){
15.
$GLOBALS['G_DY']['db_driver_path'] = $GLOBALS['G_DY']['sp_drivers_path'].'/'.$GLOBALS['G_DY']['db']['driver'].'.php';
16.
}
17.
18.
$this->_db = syClass('db_'.$GLOBALS['G_DY']['db']['driver'], array(0=>$GLOBALS['G_DY']['db']), $GLOBALS['G_DY']['db_driver_path']);
}
19.
20.
public function notable($value)
21.
{
22.
if ($this->_db->showtables($value)==0){return TRUE;}else{return FALSE;}
- D:\wwwroot\adeeri2\wwwroot\include\Functions.php on line 95
90.
}
91.
}
92.
if(FALSE != $has_define){
93.
$argString = '';$comma = '';
94.
if(null != $args)for ($i = 0; $i < count($args); $i ++) { $argString .= $comma . "\$args[$i]"; $comma = ', ';}
95.
96.
eval("\$GLOBALS['G_DY']['inst_class'][\$class_name]= new \$class_name($argString);");
return $GLOBALS['G_DY']["inst_class"][$class_name];
97.
}
98.
syError($class_name."类定义不存在,请检查。");
99.
}
100.
function curl_get($url) {
- D:\wwwroot\adeeri2\wwwroot\include\Functions.php on line 207
202.
{
203.
return $GLOBALS['G_DY']["view_registered_functions"][$alias] = $callback_function;
204.
}
205.
206.
function syDB($tbl_name, $pk = null){
207.
208.
$modelObj = syClass("syModel");
$modelObj->tbl_name = (TRUE == $GLOBALS['G_DY']["db_spdb_full_tblname"]) ? $tbl_name : $GLOBALS['G_DY']['db']['prefix'] . $tbl_name;
209.
if( !$pk ){
210.
@list($pk) = $modelObj->_db->getTable($modelObj->tbl_name);$pk = $pk['Field'];
211.
}
212.
$modelObj->pk = $pk;
- D:\wwwroot\adeeri2\wwwroot\include\Functions.php on line 458
453.
$c=syDB('custom')->find(array('file' => $file));
454.
return $c;
455.
}
456.
//频道信息获取
457.
function moldsinfo($molds,$q){
458.
459.
$m=syDB('molds')->find(array('molds' => $molds),null,$q);
return $m[$q];
460.
}
461.
//内容信息获取
462.
function contentinfo($molds,$id,$q){
463.
$c=syDB($molds)->find(array('id' => $id),null,$q);
- D:\wwwroot\adeeri2\wwwroot\source\article.php on line 8
3.
class article extends syController
4.
{
5.
function __construct(){
6.
parent::__construct();
7.
$this->molds = 'article';
8.
9.
$this->moldname=moldsinfo('article','moldname');
$this->sy_class_type=syClass('syclasstype');
10.
$this->Class=syClass('c_article');
11.
$this->db=$GLOBALS['G_DY']['db']['prefix'].'article';
12.
}
13.
function index(){
- D:\wwwroot\adeeri2\wwwroot\include\Functions.php on line 95
90.
}
91.
}
92.
if(FALSE != $has_define){
93.
$argString = '';$comma = '';
94.
if(null != $args)for ($i = 0; $i < count($args); $i ++) { $argString .= $comma . "\$args[$i]"; $comma = ', ';}
95.
96.
eval("\$GLOBALS['G_DY']['inst_class'][\$class_name]= new \$class_name($argString);");
return $GLOBALS['G_DY']["inst_class"][$class_name];
97.
}
98.
syError($class_name."类定义不存在,请检查。");
99.
}
100.
function curl_get($url) {
- D:\wwwroot\adeeri2\wwwroot\include\Functions.php on line 11
6.
syError('route Error');
7.
exit;
8.
}
9.
syClass('sysession');
10.
spLaunch("router_prefilter");
11.
12.
$handle_controller = syClass($__controller, null, $GLOBALS['G_DY']["controller_path"].'/'.$__controller.".php");
if(!is_object($handle_controller) || !method_exists($handle_controller, $__action)){
13.
syError('route Error');
14.
exit;
15.
}
16.
$handle_controller->$__action();
- D:\wwwroot\adeeri2\wwwroot\index.php on line 5
1.
<?php
2.
require("config.php");
3.
$doyoConfig['view']['config']['template_dir'] = APP_PATH.'/template/'.$doyoConfig['ext']['view_themes'];
4.
require(DOYO_PATH."/sys.php");
5.
spRun();