当前位置: 首页>>代码示例>>PHP>>正文


PHP ibase_close函数代码示例

本文整理汇总了PHP中ibase_close函数的典型用法代码示例。如果您正苦于以下问题:PHP ibase_close函数的具体用法?PHP ibase_close怎么用?PHP ibase_close使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了ibase_close函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: _sql_close

 /**
  * Close sql connection
  * @access: private
  */
 function _sql_close()
 {
     return @ibase_close($this->db_connect_id);
 }
开发者ID:yunsite,项目名称:gloryroad,代码行数:8,代码来源:firebird.php

示例2: close

 /**
  *@package db_firebird
  *@method close()
  *@desc Close Firebird/Interbase connection
  *@since v0.3.1
  * */
 public function close()
 {
     if (self::$is_connected) {
         ibase_close();
         self::$is_connected = false;
     }
 }
开发者ID:mmendoza000,项目名称:freekore,代码行数:13,代码来源:db_firebird.php

示例3: close

 /**
  * Disconnect
  *
  * @return  bool success
  */
 public function close()
 {
     if ($this->handle && ($r = ibase_close($this->handle))) {
         $this->handle = NULL;
         return $r;
     }
     return FALSE;
 }
开发者ID:Gamepay,项目名称:xp-framework,代码行数:13,代码来源:InterBaseConnection.class.php

示例4: Close

 function Close()
 {
     if ($this->connection != 0) {
         if (!$this->auto_commit && $this->transaction_id) {
             ibase_rollback($this->transaction_id);
             $this->transaction_id = 0;
         }
         ibase_close($this->connection);
         $this->connection = 0;
         $this->affected_rows = -1;
     }
 }
开发者ID:BackupTheBerlios,项目名称:zvs,代码行数:12,代码来源:metabase_ibase.php

示例5: sql_close

 function sql_close()
 {
     if (!$this->db_connect_id) {
         return false;
     }
     if ($this->transaction) {
         @ibase_commit($this->db_connect_id);
     }
     if (sizeof($this->open_queries)) {
         foreach ($this->open_queries as $i_query_id => $query_id) {
             @ibase_free_query($query_id);
         }
     }
     return @ibase_close($this->db_connect_id);
 }
开发者ID:MarxGonzalez,项目名称:SemanticScuttle,代码行数:15,代码来源:firebird.php

示例6: DBAQuery

 function DBAQuery(&$db, $database_file, $query)
 {
     if (!function_exists("ibase_connect")) {
         return $db->SetError("DBA query", "Interbase support is not available in this PHP configuration");
     }
     if (!isset($db->options[$option = "DBAUser"]) || !isset($db->options[$option = "DBAPassword"])) {
         return $db->SetError("DBA query", "it was not specified the Interbase {$option} option");
     }
     $database = $db->host . (strcmp($database_file, "") ? ":" . $database_file : "");
     if (($connection = @ibase_connect($database, $db->options["DBAUser"], $db->options["DBAPassword"])) <= 0) {
         return $db->SetError("DBA query", "Could not connect to Interbase server ({$database}): " . ibase_errmsg());
     }
     if (!($success = @ibase_query($connection, $query))) {
         $db->SetError("DBA query", "Could not execute query ({$query}): " . ibase_errmsg());
     }
     ibase_close($connection);
     return $success;
 }
开发者ID:BackupTheBerlios,项目名称:zvs,代码行数:18,代码来源:manager_ibase.php

示例7: ibase_connect

<?php

$host = 'localhost:/path/to/your.gdb';
$dbh = ibase_connect($host, $username, $password);
$stmt = 'SELECT * FROM tblname';
$sth = ibase_query($dbh, $stmt);
while ($row = ibase_fetch_object($sth)) {
    echo $row->email, "\n";
}
ibase_free_result($sth);
ibase_close($dbh);
开发者ID:exakat,项目名称:exakat,代码行数:11,代码来源:Extibase.01.php

示例8: disconnect

 /**
  * Disconnects from a database.
  * @return void
  */
 public function disconnect()
 {
     ibase_close($this->connection);
 }
开发者ID:floffel03,项目名称:pydio-core,代码行数:8,代码来源:DibiFirebirdDriver.php

示例9: sql_logout

function sql_logout($id)
{
    global $dbtype;
    switch ($dbtype) {
        case "MySQL":
            $dbi = @mysql_close($id);
            return $dbi;
            break;
        case "mSQL":
            $dbi = @msql_close($id);
            return $dbi;
            break;
        case "postgres":
        case "postgres_local":
            $dbi = @pg_close($id);
            return $dbi;
            break;
        case "ODBC":
        case "ODBC_Adabas":
            $dbi = @odbc_close($id);
            return $dbi;
            break;
        case "Interbase":
            $dbi = @ibase_close($id);
            return $dbi;
            break;
        case "Sybase":
            $dbi = @sybase_close($id);
            return $dbi;
            break;
        default:
            break;
    }
}
开发者ID:BackupTheBerlios,项目名称:domsmod-svn,代码行数:34,代码来源:sql_layer.php

示例10: disconnect

 public function disconnect()
 {
     if (is_resource($this->lnk)) {
         ibase_close($this->lnk);
     }
 }
开发者ID:roychoo,项目名称:jstree,代码行数:6,代码来源:class.db.php

示例11: _sql_close

 /**
  * Close sql connection
  * @access private
  */
 function _sql_close()
 {
     if ($this->service_handle !== false) {
         @ibase_service_detach($this->service_handle);
     }
     return @ibase_close($this->db_connect_id);
 }
开发者ID:BACKUPLIB,项目名称:mwenhanced,代码行数:11,代码来源:firebird.php

示例12: _close

 /**
  * Close DB Connection
  *
  * @param	resource
  * @return	void
  */
 protected function _close($conn_id)
 {
     @ibase_close($conn_id);
 }
开发者ID:rittidate,项目名称:sbobet-dev,代码行数:10,代码来源:interbase_driver.php

示例13: close

 /**
  * @see ILumine_Connection::close()
  */
 public function close()
 {
     $this->dispatchEvent(new Lumine_ConnectionEvent(Lumine_Event::PRE_CLOSE, $this));
     if ($this->conn_id && $this->state != self::CLOSED) {
         Lumine_Log::debug('Liberando resultados todos os resultados');
         Lumine_Dialect_Factory::getByName('Firebird')->freeAllResults();
         $this->state = self::CLOSED;
         Lumine_Log::debug('Fechando conexao com ' . $this->getDatabase());
         ibase_close($this->conn_id);
     }
     $this->dispatchEvent(new Lumine_ConnectionEvent(Lumine_Event::POS_CLOSE, $this));
 }
开发者ID:rrmoura1,项目名称:Abstergo,代码行数:15,代码来源:Firebird.php

示例14: closeConnection

 /**
  * Force the connection to close.
  *
  * @return void
  */
 public function closeConnection()
 {
     if (is_resource($this->_transResource)) {
         ibase_rollback($this->_transResource);
     }
     $this->_transResource = null;
     if (is_resource($this->_connection)) {
         ibase_close($this->_connection);
     }
     $this->_connection = null;
 }
开发者ID:jorgenils,项目名称:zend-framework,代码行数:16,代码来源:Firebird.php

示例15: close

 /**
 +----------------------------------------------------------
 * 关闭数据库
 +----------------------------------------------------------
 * @access public
 +----------------------------------------------------------
 */
 public function close()
 {
     if ($this->_linkID) {
         ibase_close($this->_linkID);
     }
     $this->_linkID = null;
 }
开发者ID:zjstage,项目名称:ThinkPHP,代码行数:14,代码来源:DbIbase.class.php


注:本文中的ibase_close函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。