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


PHP ocicommit函数代码示例

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


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

示例1: _sql_transaction

 /**
  * SQL Transaction
  * @access private
  */
 function _sql_transaction($status = 'begin')
 {
     switch ($status) {
         case 'begin':
             return true;
             break;
         case 'commit':
             return @ocicommit($this->db_connect_id);
             break;
         case 'rollback':
             return @ocirollback($this->db_connect_id);
             break;
     }
     return true;
 }
开发者ID:puring0815,项目名称:OpenKore,代码行数:19,代码来源:oracle.php

示例2: commit

 /**
  * Commit a transaction
  *
  * @param unknown_type $model
  * @return boolean True on success, false on fail
  * (i.e. if the database/model does not support transactions,
  * or a transaction has not started).
  */
 function commit()
 {
     $this->__transactionStarted = false;
     return ocicommit($this->connection);
 }
开发者ID:jerzzz777,项目名称:cake-cart,代码行数:13,代码来源:dbo_oracle.php

示例3: print

        print("      <div id=\"ltail".str_pad($i + 1, 3, "0", STR_PAD_LEFT)."\"".(!$flag? " class=\"inv\"": "").">\n        <textarea readonly=\"readonly\" wrap=\"off\">".$results['LONG_TAIL'][$i]."</textarea>\n        <br>\n        <br>\n        <button onClick=\"shrink(this.parentNode);\">\n          shrink ".($i + 1)."\n        </button>\n      </div>\n    </td>\n");
        print("  </tr>\n");
      }
      print("</table>\n");
    }
    else print("<p class=\"bo\">\n  No PopCon cronjob tails recorded!\n</p>\n");
    ocifreestatement($stmt);
    ocilogoff($conn);
    $svr = $svrlog;
    $apl = "mon";
    require($path."auth.inc");
    $conn = ocilogon($usr, $pwd, $svr);
    require($path."geoip.inc");
    $gi = geoip_open("geoip.dat", GEOIP_STANDARD);  
      ociexecute(ociparse($conn, "insert into $usr.mon_log (domain, ip, country, browser, kind) values ('".strtolower(gethostbyaddr("$REMOTE_ADDR"))."', '$REMOTE_ADDR', '".geoip_country_name_by_addr($gi, $REMOTE_ADDR)."', '$HTTP_USER_AGENT', 'T')"));
      ocicommit($conn);
    geoip_close($gi);
    ocilogoff($conn);
  }
  else oraconnecterror();
</script>

<p class="bo">
  This page has been dynamically generated on
  <?php 
print newdate(time(), "eng") . " at " . date("G:i", time()) . ", Central European time.";
?>
  Created on September 20<sup>th</sup>, 2008, its source code has been last updated on November 13<sup>th</sup>, 2008.
  <br>
  For any suggestion or comment, please write to
  <?php 
开发者ID:nsahoo,项目名称:cmssw-1,代码行数:31,代码来源:logtails.php

示例4: DBcommit

function DBcommit()
{
    global $DB;
    $result = false;
    if (isset($DB['DB']) && !empty($DB['DB'])) {
        switch ($DB['TYPE']) {
            case 'MYSQL':
                $result = DBexecute('commit');
                break;
            case 'POSTGRESQL':
                $result = DBexecute('commit');
                break;
            case 'ORACLE':
                $result = ocicommit($DB['DB']);
                break;
            case 'SQLITE3':
                $result = DBexecute('commit');
                unlock_db_access();
                break;
        }
    }
    return $result;
}
开发者ID:rennhak,项目名称:zabbix,代码行数:23,代码来源:db.inc.php

示例5: ocilogon

$username = $_POST['username'];
$password = $_POST['pwd'];
if ($password == null) {
    echo '<font color="' . red . '">Password cannot be blank. Please enter a valid password</font>';
    echo "<br/><br/>";
    echo "<a href='http://uisacad.uis.edu/~kmulpu2/PasswordReset.html'>Back To Password Reset Page</a>";
    exit;
}
$connection = ocilogon("tanis2", "oracle", "oracle.uis.edu");
$sqlquery = "UPDATE CREDENTIALS SET password='" . $password . "' WHERE username='" . $username . "'";
$sql_id = ociparse($connection, $sqlquery);
if (!$sql_id) {
    $e = oci_error($connection);
    echo "The following error occured:";
    print htmlentities($e['message']);
    exit;
}
$returnValue = ociexecute($sql_id, OCI_DEFAULT);
if ($returnValue == 1) {
    echo '<font color="' . blue . '">Password was reset successfully</font>';
    ocicommit($connection);
    echo "<br/><br/>";
    echo "<a href='http://uisacad.uis.edu/~kmulpu2/DillardsReporting.html'>Back To Login Page</a>";
} else {
    echo '<font color="' . red . '">Unable to reset password due to server issues. Please try again later</font>';
}
OCIFreeStatement($sql_id);
OCILogoff($connection);
?>
</body>
</html>
开发者ID:priyalgandhi03,项目名称:DBMS,代码行数:31,代码来源:PasswordUpdate.php

示例6: DBcommit

function DBcommit()
{
    global $DB;
    $result = false;
    switch ($DB['TYPE']) {
        case ZBX_DB_MYSQL:
            $result = DBexecute('commit');
            break;
        case ZBX_DB_POSTGRESQL:
            $result = DBexecute('commit');
            break;
        case ZBX_DB_ORACLE:
            $result = ocicommit($DB['DB']);
            break;
        case ZBX_DB_DB2:
            $result = db2_commit($DB['DB']);
            if ($result) {
                db2_autocommit($DB['DB'], DB2_AUTOCOMMIT_ON);
            }
            break;
        case ZBX_DB_SQLITE3:
            $result = DBexecute('commit');
            unlock_sqlite3_access();
            break;
    }
    return $result;
}
开发者ID:quanta-computing,项目名称:debian-packages,代码行数:27,代码来源:db.inc.php

示例7: ocicommit

 function &commit()
 {
     return ocicommit($this->_connection);
 }
开发者ID:BackupTheBerlios,项目名称:phpaie,代码行数:4,代码来源:CopixDbConnection.oci8.class.php

示例8: commit

 function commit()
 {
     return ocicommit($this->connection);
 }
开发者ID:techczech,项目名称:tuit,代码行数:4,代码来源:driver-oci8.inc.php

示例9: commit

 function commit()
 {
     if (!$this->isConnect) {
         return false;
     }
     return ocicommit($this->connection);
 }
开发者ID:bryanbacus,项目名称:skripsi-martin,代码行数:7,代码来源:ORA8Access.php

示例10: db_close_connections

 /**
  * Close the database connections. We don't really need to close them (will close at exit), just disassociate so we can refresh them.
  */
 function db_close_connections()
 {
     global $CACHE_DB;
     foreach ($CACHE_DB as $db) {
         foreach ($db as $_db) {
             ocicommit($_db);
         }
     }
 }
开发者ID:erico-deh,项目名称:ocPortal,代码行数:12,代码来源:oracle.php

示例11: db_commit

/**
 * db_commit() - Commit a transaction
 */
function db_commit()
{
    global $sys_db_oci_commit_mode, $gfconn;
    $sys_db_oci_commit_mode = 'OCI_COMMIT_ON_SUCCESS';
    return ocicommit($gfconn);
}
开发者ID:neymanna,项目名称:fusionforge,代码行数:9,代码来源:database-oci8.php

示例12: DBcommit

function DBcommit()
{
    global $DB;
    $result = false;
    if (isset($DB['DB']) && !empty($DB['DB'])) {
        switch ($DB['TYPE']) {
            case 'MYSQL':
                $result = DBexecute('commit');
                break;
            case 'POSTGRESQL':
                $result = DBexecute('commit');
                break;
            case 'ORACLE':
                $result = ocicommit($DB['DB']);
                break;
            case 'IBM_DB2':
                $result = db2_commit($DB['DB']);
                if ($result) {
                    db2_autocommit($DB['DB'], DB2_AUTOCOMMIT_ON);
                }
                break;
            case 'SQLITE3':
                $result = DBexecute('commit');
                unlock_db_access();
                break;
        }
    }
    return $result;
}
开发者ID:songyuanjie,项目名称:zabbix-stats,代码行数:29,代码来源:db.inc.php

示例13: ocicloselob

ocicloselob();
ocicollappend();
ocicollassign();
ocicollassignelem();
ocicollgetelem();
ocicollmax();
ocicollsize();
ocicolltrim();
ocicolumnisnull();
ocicolumnname();
ocicolumnprecision();
ocicolumnscale();
ocicolumnsize();
ocicolumntype();
ocicolumntyperaw();
ocicommit();
ocidefinebyname();
ocierror();
ociexecute();
ocifetch();
ocifetchinto();
ocifetchstatement();
ocifreecollection();
ocifreecursor();
ocifreedesc();
ocifreestatement();
ociinternaldebug();
ociloadlob();
ocilogoff();
ocilogon();
ocinewcollection();
开发者ID:christopheg,项目名称:PHPCompatibility,代码行数:31,代码来源:deprecated_functions.php


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