DESCRIBE vn_conf
执行错误: Can't create/write to file '/tmp/#sql_109e_0.MYI' (Errcode: 28 - No space left on device)

57.      {
58.          $this->arrSql[] = $sql;
59.          if( $result mysql_query($sql$this->conn) ){
60.              return $result;
61.          }else{
62.              spError("{$sql}<br />执行错误: " mysql_error());
63.          }
64.      }
65.      
66.      /**
67.       返回影响行数
21.       
22.       * @param sql  执行的SQL语句
23.       */
24.      public function getArray($sql)
25.      {
26.          if( ! $result $this->exec($sql) )return array();
27.          if( ! mysql_num_rows($result) )return array();
28.          $rows = array();
29.          while($rows[] = mysql_fetch_array($result,MYSQL_ASSOC)){}
30.          mysql_free_result($result);
31.          array_pop($rows);
76.       *
77.       * @param tbl_name  表名称
78.       */
79.      public function getTable($tbl_name)
80.      {
81.          return $this->getArray("DESCRIBE {$tbl_name}");
82.      }
83. 
84.      /**
85.       构造函数
86.       *
367.       按表字段调整适合的字段
368.       * @param rows    输入的表字段
369.       */
370.      private function __prepera_format($rows)
371.      {
372.          $columns $this->_db->getTable($this->tbl_name);
373.          $newcol = array();
374.          foreach( $columns as $col ){
375.              $newcol[$col['Field']] = $col['Field'];
376.          }
377.          return array_intersect_key($rows,$newcol);
278.       *  此参数的格式用法与create的$row是相同的。在符合条件的记录中,将对$row设置的字段的数据进行修改。
279.       */
280.      public function update($conditions$row)
281.      {
282.          $where "";
283.          $row $this->__prepera_format($row);
284.          if(empty($row))return FALSE;
285.          if(is_array($conditions)){
286.              $join = array();
287.              foreach( $conditions as $key => $condition ){
288.                  $condition $this->escape($condition);
266.      }
267.      $txt .='</urlset>';
268.      fwrite($myfile,$txt);
269.      fclose($myfile);    
270.      
271.      spClass('m_conf')->update(array('id'=>1),array('rcmaprq'=>date('Y-m-d')));
272.  }
5.  define('APP_PATH'dirname(__FILE__));
6.  define('SP_PATH'dirname(__FILE__).'/Comm/MyFrame');
7.  //加载配置文件
8.  require('config.php');
9.  //加载框架核心
10.  require(SP_PATH.'/SpeedPHP.php');
11.  require('functions.php');
12.  //执行应用
13.  spRun();
14.  ?>