test_compatibility.php

来自「视频监控网络部分的协议ddns,的模块的实现代码,请大家大胆指正.」· PHP 代码 · 共 46 行

PHP
46
字号
<?php/* vim: set expandtab tabstop=4 shiftwidth=4: */// +----------------------------------------------------------------------+// | Copyright (c) 2002-2003 Brent Cook                                        |// +----------------------------------------------------------------------+// | This library is free software; you can redistribute it and/or        |// | modify it under the terms of the GNU Lesser General Public           |// | License as published by the Free Software Foundation; either         |// | version 2.1 of the License, or (at your option) any later version.   |// |                                                                      |// | This library is distributed in the hope that it will be useful,      |// | but WITHOUT ANY WARRANTY; without even the implied warranty of       |// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU    |// | Lesser General Public License for more details.                      |// |                                                                      |// | You should have received a copy of the GNU Lesser General Public     |// | License along with this library; if not, write to the Free Software  |// | Foundation, Inc., 59 Temple Place, Suite 330,Boston,MA 02111-1307 USA|// +----------------------------------------------------------------------+// | Author: Brent Cook <busterb@mail.utexas.edu>                         |// +----------------------------------------------------------------------+//// $Id: test_compatibility.php,v 1.2 2003/01/04 11:54:51 mj Exp $//// test functionality of the dba compatibility layerrequire_once 'DBA/Compatibility.php';$id = dba_open ("file_test", "n", "db3");if (!$id) {    echo "dba_open failed\n";    exit;}dba_insert ("key", "This is an example!", $id);dba_replace ("key", "This is another example!", $id);if (dba_exists ("key", $id)) {    echo dba_fetch ("key", $id);    dba_delete ("key", $id);}dba_close ($id);?>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?