亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? sqlite.php

?? 視頻監(jiān)控網(wǎng)絡(luò)部分的協(xié)議ddns,的模塊的實(shí)現(xiàn)代碼,請(qǐng)大家大膽指正.
?? PHP
?? 第 1 頁(yè) / 共 2 頁(yè)
字號(hào):
<?php/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: *//** * The PEAR DB driver for PHP's sqlite extension * for interacting with SQLite databases * * PHP versions 4 and 5 * * LICENSE: This source file is subject to version 3.0 of the PHP license * that is available through the world-wide-web at the following URI: * http://www.php.net/license/3_0.txt.  If you did not receive a copy of * the PHP License and are unable to obtain it through the web, please * send a note to license@php.net so we can mail you a copy immediately. * * @category   Database * @package    DB * @author     Urs Gehrig <urs@circle.ch> * @author     Mika Tuupola <tuupola@appelsiini.net> * @author     Daniel Convissor <danielc@php.net> * @copyright  1997-2005 The PHP Group * @license    http://www.php.net/license/3_0.txt  PHP License 3.0 3.0 * @version    CVS: $Id: sqlite.php,v 1.109 2005/03/10 01:22:48 danielc Exp $ * @link       http://pear.php.net/package/DB *//** * Obtain the DB_common class so it can be extended from */require_once 'DB/common.php';/** * The methods PEAR DB uses to interact with PHP's sqlite extension * for interacting with SQLite databases * * These methods overload the ones declared in DB_common. * * NOTICE:  This driver needs PHP's track_errors ini setting to be on. * It is automatically turned on when connecting to the database. * Make sure your scripts don't turn it off. * * @category   Database * @package    DB * @author     Urs Gehrig <urs@circle.ch> * @author     Mika Tuupola <tuupola@appelsiini.net> * @author     Daniel Convissor <danielc@php.net> * @copyright  1997-2005 The PHP Group * @license    http://www.php.net/license/3_0.txt  PHP License 3.0 3.0 * @version    Release: 1.7.6 * @link       http://pear.php.net/package/DB */class DB_sqlite extends DB_common{    // {{{ properties    /**     * The DB driver type (mysql, oci8, odbc, etc.)     * @var string     */    var $phptype = 'sqlite';    /**     * The database syntax variant to be used (db2, access, etc.), if any     * @var string     */    var $dbsyntax = 'sqlite';    /**     * The capabilities of this DB implementation     *     * The 'new_link' element contains the PHP version that first provided     * new_link support for this DBMS.  Contains false if it's unsupported.     *     * Meaning of the 'limit' element:     *   + 'emulate' = emulate with fetch row by number     *   + 'alter'   = alter the query     *   + false     = skip rows     *     * @var array     */    var $features = array(        'limit'         => 'alter',        'new_link'      => false,        'numrows'       => true,        'pconnect'      => true,        'prepare'       => false,        'ssl'           => false,        'transactions'  => false,    );    /**     * A mapping of native error codes to DB error codes     *     * {@internal  Error codes according to sqlite_exec.  See the online     * manual at http://sqlite.org/c_interface.html for info.     * This error handling based on sqlite_exec is not yet implemented.}}     *     * @var array     */    var $errorcode_map = array(    );    /**     * The raw database connection created by PHP     * @var resource     */    var $connection;    /**     * The DSN information for connecting to a database     * @var array     */    var $dsn = array();    /**     * SQLite data types     *     * @link http://www.sqlite.org/datatypes.html     *     * @var array     */    var $keywords = array (        'BLOB'      => '',        'BOOLEAN'   => '',        'CHARACTER' => '',        'CLOB'      => '',        'FLOAT'     => '',        'INTEGER'   => '',        'KEY'       => '',        'NATIONAL'  => '',        'NUMERIC'   => '',        'NVARCHAR'  => '',        'PRIMARY'   => '',        'TEXT'      => '',        'TIMESTAMP' => '',        'UNIQUE'    => '',        'VARCHAR'   => '',        'VARYING'   => '',    );    /**     * The most recent error message from $php_errormsg     * @var string     * @access private     */    var $_lasterror = '';    // }}}    // {{{ constructor    /**     * This constructor calls <kbd>$this->DB_common()</kbd>     *     * @return void     */    function DB_sqlite()    {        $this->DB_common();    }    // }}}    // {{{ connect()    /**     * Connect to the database server, log in and open the database     *     * Don't call this method directly.  Use DB::connect() instead.     *     * PEAR DB's sqlite driver supports the following extra DSN options:     *   + mode  The permissions for the database file, in four digit     *            chmod octal format (eg "0600").     *     * Example of connecting to a database in read-only mode:     * <code>     * require_once 'DB.php';     *      * $dsn = 'sqlite:///path/and/name/of/db/file?mode=0400';     * $options = array(     *     'portability' => DB_PORTABILITY_ALL,     * );     *      * $db =& DB::connect($dsn, $options);     * if (PEAR::isError($db)) {     *     die($db->getMessage());     * }     * </code>     *     * @param array $dsn         the data source name     * @param bool  $persistent  should the connection be persistent?     *     * @return int  DB_OK on success. A DB_Error object on failure.     */    function connect($dsn, $persistent = false)    {        if (!PEAR::loadExtension('sqlite')) {            return $this->raiseError(DB_ERROR_EXTENSION_NOT_FOUND);        }        $this->dsn = $dsn;        if ($dsn['dbsyntax']) {            $this->dbsyntax = $dsn['dbsyntax'];        }        if ($dsn['database']) {            if (!file_exists($dsn['database'])) {                if (!touch($dsn['database'])) {                    return $this->sqliteRaiseError(DB_ERROR_NOT_FOUND);                }                if (!isset($dsn['mode']) ||                    !is_numeric($dsn['mode']))                {                    $mode = 0644;                } else {                    $mode = octdec($dsn['mode']);                }                if (!chmod($dsn['database'], $mode)) {                    return $this->sqliteRaiseError(DB_ERROR_NOT_FOUND);                }                if (!file_exists($dsn['database'])) {                    return $this->sqliteRaiseError(DB_ERROR_NOT_FOUND);                }            }            if (!is_file($dsn['database'])) {                return $this->sqliteRaiseError(DB_ERROR_INVALID);            }            if (!is_readable($dsn['database'])) {                return $this->sqliteRaiseError(DB_ERROR_ACCESS_VIOLATION);            }        } else {            return $this->sqliteRaiseError(DB_ERROR_ACCESS_VIOLATION);        }        $connect_function = $persistent ? 'sqlite_popen' : 'sqlite_open';        // track_errors must remain on for simpleQuery()        ini_set('track_errors', 1);        $php_errormsg = '';        if (!$this->connection = @$connect_function($dsn['database'])) {            return $this->raiseError(DB_ERROR_NODBSELECTED,                                     null, null, null,                                     $php_errormsg);        }        return DB_OK;    }    // }}}    // {{{ disconnect()    /**     * Disconnects from the database server     *     * @return bool  TRUE on success, FALSE on failure     */    function disconnect()    {        $ret = @sqlite_close($this->connection);        $this->connection = null;        return $ret;    }    // }}}    // {{{ simpleQuery()    /**     * Sends a query to the database server     *     * NOTICE:  This method needs PHP's track_errors ini setting to be on.     * It is automatically turned on when connecting to the database.     * Make sure your scripts don't turn it off.     *     * @param string  the SQL query string     *     * @return mixed  + a PHP result resrouce for successful SELECT queries     *                + the DB_OK constant for other successful queries     *                + a DB_Error object on failure     */    function simpleQuery($query)    {        $ismanip = DB::isManip($query);        $this->last_query = $query;        $query = $this->modifyQuery($query);        $php_errormsg = '';        $result = @sqlite_query($query, $this->connection);        $this->_lasterror = $php_errormsg ? $php_errormsg : '';        $this->result = $result;        if (!$this->result) {            return $this->sqliteRaiseError(null);        }        // sqlite_query() seems to allways return a resource        // so cant use that. Using $ismanip instead        if (!$ismanip) {            $numRows = $this->numRows($result);            if (is_object($numRows)) {                // we've got PEAR_Error                return $numRows;            }            return $result;        }        return DB_OK;    }    // }}}    // {{{ nextResult()    /**     * Move the internal sqlite result pointer to the next available result     *     * @param resource $result  the valid sqlite result resource     *     * @return bool  true if a result is available otherwise return false     */    function nextResult($result)    {        return false;    }    // }}}    // {{{ fetchInto()    /**     * Places a row from the result set into the given array     *     * Formating of the array and the data therein are configurable.     * See DB_result::fetchInto() for more information.     *     * This method is not meant to be called directly.  Use     * DB_result::fetchInto() instead.  It can't be declared "protected"     * because DB_result is a separate object.     *     * @param resource $result    the query result resource     * @param array    $arr       the referenced array to put the data in     * @param int      $fetchmode how the resulting array should be indexed     * @param int      $rownum    the row number to fetch (0 = first row)     *     * @return mixed  DB_OK on success, NULL when the end of a result set is     *                 reached or on failure     *     * @see DB_result::fetchInto()     */    function fetchInto($result, &$arr, $fetchmode, $rownum = null)    {        if ($rownum !== null) {            if (!@sqlite_seek($this->result, $rownum)) {                return null;            }        }        if ($fetchmode & DB_FETCHMODE_ASSOC) {            $arr = @sqlite_fetch_array($result, SQLITE_ASSOC);            if ($this->options['portability'] & DB_PORTABILITY_LOWERCASE && $arr) {                $arr = array_change_key_case($arr, CASE_LOWER);            }        } else {            $arr = @sqlite_fetch_array($result, SQLITE_NUM);        }        if (!$arr) {            return null;        }        if ($this->options['portability'] & DB_PORTABILITY_RTRIM) {            /*             * Even though this DBMS already trims output, we do this because             * a field might have intentional whitespace at the end that             * gets removed by DB_PORTABILITY_RTRIM under another driver.             */            $this->_rtrimArrayValues($arr);        }        if ($this->options['portability'] & DB_PORTABILITY_NULL_TO_EMPTY) {            $this->_convertNullArrayValuesToEmpty($arr);        }        return DB_OK;    }    // }}}    // {{{ freeResult()    /**     * Deletes the result set and frees the memory occupied by the result set     *     * This method is not meant to be called directly.  Use     * DB_result::free() instead.  It can't be declared "protected"     * because DB_result is a separate object.     *     * @param resource $result  PHP's query result resource     *     * @return bool  TRUE on success, FALSE if $result is invalid     *     * @see DB_result::free()     */    function freeResult(&$result)    {        // XXX No native free?        if (!is_resource($result)) {            return false;        }        $result = null;        return true;    }    // }}}    // {{{ numCols()    /**     * Gets the number of columns in a result set     *     * This method is not meant to be called directly.  Use     * DB_result::numCols() instead.  It can't be declared "protected"     * because DB_result is a separate object.     *     * @param resource $result  PHP's query result resource     *     * @return int  the number of columns.  A DB_Error object on failure.     *     * @see DB_result::numCols()     */    function numCols($result)    {        $cols = @sqlite_num_fields($result);        if (!$cols) {            return $this->sqliteRaiseError();        }        return $cols;    }    // }}}    // {{{ numRows()    /**     * Gets the number of rows in a result set     *     * This method is not meant to be called directly.  Use     * DB_result::numRows() instead.  It can't be declared "protected"     * because DB_result is a separate object.     *     * @param resource $result  PHP's query result resource     *     * @return int  the number of rows.  A DB_Error object on failure.     *     * @see DB_result::numRows()     */    function numRows($result)    {        $rows = @sqlite_num_rows($result);        if ($rows === null) {            return $this->sqliteRaiseError();        }        return $rows;    }    // }}}    // {{{ affected()    /**     * Determines the number of rows affected by a data maniuplation query     *     * 0 is returned for queries that don't manipulate data.     *     * @return int  the number of rows.  A DB_Error object on failure.     */    function affectedRows()    {        return @sqlite_changes($this->connection);    }    // }}}    // {{{ dropSequence()

?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久综合五月天婷婷伊人| 欧美大片在线观看| 麻豆精品久久精品色综合| 欧美激情一区二区三区在线| 欧美日韩成人一区| 一本到不卡免费一区二区| 国产91精品一区二区麻豆网站| 18成人在线观看| 亚洲精品一线二线三线| 欧美日韩在线播放三区四区| 粉嫩av一区二区三区在线播放| 奇米影视一区二区三区| 一区二区三区在线免费观看| 中文字幕乱码亚洲精品一区| 日韩丝袜情趣美女图片| 欧美网站大全在线观看| 91在线观看地址| 成人性色生活片| 国产一区在线不卡| 美女精品自拍一二三四| 亚洲韩国一区二区三区| 一区二区在线观看免费视频播放 | 成人激情视频网站| 久久成人麻豆午夜电影| 蜜桃视频免费观看一区| 日韩影院免费视频| 天天综合天天做天天综合| 亚洲最色的网站| 亚洲黄色免费电影| 一区二区三区四区视频精品免费 | 国产亚洲成年网址在线观看| 日韩精品一区二区三区四区| 91超碰这里只有精品国产| 91久久精品午夜一区二区| 在线精品视频免费观看| 欧美中文字幕久久| 欧美视频一区在线| 欧美日韩一级二级三级| 精品视频全国免费看| 欧美视频完全免费看| 欧美三级视频在线| 欧美日韩亚洲综合在线| 在线不卡免费av| 日韩欧美一区二区三区在线| 精品国产免费一区二区三区四区| 亚洲精品在线网站| 国产欧美一区二区精品秋霞影院 | 一二三区精品福利视频| 一区二区三区av电影| 看电影不卡的网站| 精品写真视频在线观看| 粉嫩嫩av羞羞动漫久久久| 成人高清免费观看| 99久久国产综合精品色伊| 91国内精品野花午夜精品| 欧美电影一区二区三区| 日韩欧美在线影院| 国产午夜精品美女毛片视频| 国产精品成人免费| 一区二区在线观看视频| 日本午夜精品视频在线观看 | 精品国产乱码久久久久久老虎| 精品国产伦理网| 国产精品免费视频一区| 亚洲精品视频自拍| 久久成人麻豆午夜电影| 成人黄色片在线观看| 欧美揉bbbbb揉bbbbb| 精品久久久影院| 亚洲色图自拍偷拍美腿丝袜制服诱惑麻豆 | 黄色精品一二区| 不卡av在线免费观看| 欧洲av在线精品| 欧美精品一区二区在线观看| 中文字幕一区二区视频| 午夜精品视频在线观看| 国产大片一区二区| 91成人网在线| 久久久久97国产精华液好用吗| 亚洲欧洲性图库| 秋霞成人午夜伦在线观看| 成a人片亚洲日本久久| 欧美日韩成人综合天天影院| 欧美国产一区在线| 天天影视涩香欲综合网| caoporm超碰国产精品| 91精品一区二区三区在线观看| 国产精品丝袜一区| 日本不卡不码高清免费观看| av电影在线观看不卡| 欧美精品1区2区| 国产精品第四页| 久久成人精品无人区| 欧美三级电影网| 日韩毛片精品高清免费| 国产在线精品免费| 欧美日韩国产天堂| 国产精品久久久久9999吃药| 久久激五月天综合精品| 色婷婷激情综合| 欧美国产在线观看| 国模一区二区三区白浆| 欧美久久久久免费| 亚洲三级在线免费| 国产精品综合视频| 精品国产精品网麻豆系列| 亚洲国产精品视频| 色网站国产精品| 欧美激情一区在线观看| 精品午夜久久福利影院| 欧美老年两性高潮| 亚洲一区二区三区美女| 91污在线观看| 国产精品久久久久久久岛一牛影视 | 成人黄色综合网站| 久久久不卡网国产精品二区| 另类中文字幕网| 欧美一区二区私人影院日本| 一级特黄大欧美久久久| 色婷婷综合久久久久中文| 中文字幕制服丝袜成人av | 91一区二区三区在线观看| 欧美国产视频在线| 国产成人在线网站| 久久精品亚洲精品国产欧美kt∨| 免费观看91视频大全| 7777女厕盗摄久久久| 首页国产丝袜综合| 91精品国产91热久久久做人人| 亚洲黄色在线视频| 欧美亚洲国产一卡| 亚洲成国产人片在线观看| 欧美丝袜丝交足nylons| 亚洲成人综合视频| 欧美日韩一区在线观看| 亚洲成av人片在www色猫咪| 欧美日韩亚洲综合| 婷婷激情综合网| 日韩欧美一区二区三区在线| 麻豆成人免费电影| 久久在线观看免费| 国产精品亚洲专一区二区三区 | 欧美二区三区的天堂| 日韩精品色哟哟| 欧美tickling挠脚心丨vk| 久久成人精品无人区| 国产日产欧美精品一区二区三区| 国产69精品久久777的优势| 中文字幕亚洲不卡| 91高清视频在线| 午夜激情久久久| 欧美电影精品一区二区| 国产成人福利片| 最新日韩av在线| 欧美综合欧美视频| 免费看日韩精品| 日本一区二区三区在线不卡| 91小宝寻花一区二区三区| 亚洲444eee在线观看| 欧美本精品男人aⅴ天堂| 国产经典欧美精品| 亚洲免费在线视频| 欧美一区二区在线不卡| 国产69精品一区二区亚洲孕妇| 亚洲欧美韩国综合色| 欧美一区二区免费观在线| 国产黄色精品网站| 亚洲码国产岛国毛片在线| 51精品国自产在线| 国产成人在线视频网址| 亚洲国产精品久久不卡毛片| 欧美哺乳videos| 色狠狠一区二区三区香蕉| 免费高清不卡av| √…a在线天堂一区| 日韩欧美自拍偷拍| 91色综合久久久久婷婷| 人人爽香蕉精品| 亚洲人成网站色在线观看| 日韩免费高清电影| 日本久久精品电影| 国产伦精一区二区三区| 夜夜精品视频一区二区| 久久人人爽爽爽人久久久| 欧美天堂亚洲电影院在线播放| 国产精品资源在线看| 性做久久久久久免费观看| 亚洲国产精品精华液2区45| 91精品国产麻豆国产自产在线| 成a人片亚洲日本久久| 久久91精品久久久久久秒播| 一区二区三区在线观看国产| 久久九九久精品国产免费直播| 欧美日韩二区三区| 91日韩在线专区| 国产成人免费xxxxxxxx| 久久精品国产一区二区| 亚洲图片一区二区| 日韩理论电影院| 国产日韩三级在线|