DESCRIBE dy_product
執(zhí)行錯誤: Out of resources when opening file './my5555328619/dy_product.MYD' (Errcode: 24 - Too many open files)
- D:\virtualhost\localuser\host3972371269\www\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 />執(zhí)行錯誤: " . mysql_error());
}else{
41.
return TRUE;
42.
}
43.
}
44.
}
- D:\virtualhost\localuser\host3972371269\www\include\mysql.php on line 8
3.
class db_mysql {
4.
public $conn;
5.
public $arrSql;
6.
public function getArray($sql)
7.
{
8.
9.
if( ! $result = $this->exec($sql) )return array();
if( ! mysql_num_rows($result) )return array();
10.
$rows = array();
11.
while($rows[] = mysql_fetch_array($result,MYSQL_ASSOC)){}
12.
mysql_free_result($result);
13.
array_pop($rows);
- D:\virtualhost\localuser\host3972371269\www\include\mysql.php on line 53
48.
return mysql_affected_rows($this->conn);
49.
}
50.
51.
public function getTable($tbl_name)
52.
{
53.
54.
return $this->getArray("DESCRIBE {$tbl_name}");
}
55.
56.
public function __construct($dbConfig)
57.
{
58.
$linkfunction = ( TRUE == $dbConfig['persistent'] ) ? 'mysql_pconnect' : 'mysql_connect';
- D:\virtualhost\localuser\host3972371269\www\include\Functions.php on line 370
365.
366.
function syDB($tbl_name, $pk = null){
367.
$modelObj = syClass("syModel");
368.
$modelObj->tbl_name = (TRUE == $GLOBALS['G_DY']["db_spdb_full_tblname"]) ? $tbl_name : $GLOBALS['G_DY']['db']['prefix'] . $tbl_name;
369.
if( !$pk ){
370.
371.
@list($pk) = $modelObj->_db->getTable($modelObj->tbl_name);$pk = $pk['Field'];
}
372.
$modelObj->pk = $pk;
373.
return $modelObj;
374.
}
375.
- D:\virtualhost\localuser\host3972371269\www\source\product.php on line 31
26.
$this->product=syDB('product')->findSql('select * from '.$this->db.' a left join '.$this->db.'_field b on (a.id=b.aid) where (htmlfile="'.$this->syArgs('file',1).'" or id='.$this->syArgs('file').') and isshow=1 limit 1');
27.
$id = $this->product['id'];
28.
}else{
29.
$id = $this->syArgs('id');
30.
if(!$id){message("請指定內(nèi)容id");}
31.
32.
$this->product=syDB('product')->findSql('select * from '.$this->db.' a left join '.$this->db.'_field b on (a.id=b.aid) where id='.$id.' and isshow=1 limit 1');
}
33.
if(!$this->product){message("指定內(nèi)容不存在或未審核");}
34.
35.
$this->product=$this->product[0];
36.
$this->product=array_merge($this->product,array('tid_leafid'=>$this->sy_class_type->leafid($this->product['tid'])));
- D:\virtualhost\localuser\host3972371269\www\include\Functions.php on line 16
11.
$handle_controller = syClass($__controller, null, $GLOBALS['G_DY']["controller_path"].'/'.$__controller.".php");
12.
if(!is_object($handle_controller) || !method_exists($handle_controller, $__action)){
13.
syError('route Error');
14.
exit;
15.
}
16.
17.
$handle_controller->$__action();
if(FALSE != $GLOBALS['G_DY']['view']['auto_display']){
18.
$__tplname = $__controller.$GLOBALS['G_DY']['view']['auto_display_sep'].
19.
$__action.$GLOBALS['G_DY']['view']['auto_display_suffix'];
20.
$handle_controller->auto_display($__tplname);
21.
}
- D:\virtualhost\localuser\host3972371269\www\index.php on line 6
1.
<?php
2.
require("config.php");
3.
//下面是判斷語句
4.
$doyoConfig['view']['config']['template_dir'] = APP_PATH.'/template/'.$doyoConfig['ext']['view_themes'];
5.
require(DOYO_PATH."/sys.php");
6.
spRun();