BDB¹Ù·½¸øPHPÌṩµÄ½Ó¿ÚµÄ³ÌÐòÔ±ÕæÊDz»¸ºÔð
¸ÕдÍêÇ°ÃæµÄÈÕÖ¾£¬ÓÖ·¢ÏÖÒ»¸öBug:
¸ù¾ÝOracle¹Ù·½ÌṩµÄ˵Ã÷£º
http://www.oracle.com/technology/documentation/berkeley-db/db/programmer_reference/ext_php.html
class Db4µÄÉùÃ÷ÈçÏ£º
class Db4 {
function Db4($dbenv = null) {} // create a new Db4 object using
// the optional DbEnv
function open($txn = null, $file = null, $database = null,
$flags = DB_CREATE, $mode = 0) {}
function close() {}
function del($key, $txn = null) {}
function get($key, $txn = null, $flags = 0) {}
function pget($key, &$pkey, $txn = null, $flags = 0) {}
function get_type() {} // returns the stringified database type name
function stat($txn = null, $flags = 0) {} // returns statistics as
// an as
function join($cursor_list, $flags = 0) {}
function sync() {}
function truncate($txn = null, $flags = 0) {}
function cursor($txn = null, flags = 0) {}
}
Ïë²âÊÔÒ»ÏÂBTREEºÍHASH·½Ê½µÄÐÔÄÜÇø±ðµÄʱºò£¬È´ÔõôҲÕÒ²»µ½Ö¸¶¨Êý¾Ý±íÀàÐ͵IJÎÊý¡£ÓÐÊÇ¿´phpÀ©Õ¹µÄÔ´´úÂ룬¾ÓÈ»·¢ÏÖ³ÌÐòÊÇÖ§³ÖµÄ£¬openµÄÔÐÍÓ¦¸ÃÈçÏ£º
function open($txn = null, $file = null, $database = null, $type = DB_BTREE, $flags = DB_CREATE, $mode = 0)
©µÄ»¹²»ÊÇ×îºóÒ»¸ö²ÎÊý¡£Õæ¹»faintµÄ¡£ÁíÍâphpÔ´ÂëÖÐҲûÓÐΪDB_BTREE¡¢DB_HASHµÈÀàÐͶ¨Òåºê¡£ÓÖÒª×Ô¼º¶¯ÊÖ·áÒÂ×ãʳÁË¡£
ÔÚdb4.cppÖÐÔö¼ÓÁËÉùÃ÷£º
REGISTER_LONG_CONSTANT("DB_BTREE", DB_BTREE, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT("DB_HASH", DB_HASH, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT("DB_RECNO", DB_RECNO, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT("DB_QUEUE", DB_QUEUE, CONST_CS | CONST_PERSISTENT);
REGISTER_LONG_CONSTANT("DB_UNKNOWN", DB_UNKNOWN, CONST_CS | CONST_PERSISTENT);
ÁíÍâδÔÚ´úÂëÖÐÕÒµ½ÉèÖÃCacheÒÔ¼°PageSizeµÄº¯Êý¡£¿´À´Õâ¸öÊÇÕæµÄ²»Ö§³ÖÁË¡£
Ïà¹ØÎĵµ£º
(4)Ó³ÉäÀà(ReflectionClass)
ReflectionClassÀàÔÊÐíÄã·´ÏòÓ³ÉäÀà¡£
<?
php
interface MySerializable
{
// ...}
class My
Object
{
// ...}
/** A counter class */
class
Counter
exten ......
In the directory where you plan to install Elgg, do the following:
Create the file .htaccess and add these two lines
RewriteEngine on
RewriteRule ^testing.php$ modrewrite.php
This tells the webserver to load modrewrite.php when testing.php is
requested.
In order to get this test to work on ......
µ¼¶Á£º ¡¡
¡¡Apache: ¡¡
¡¡¿ªÆô httpd.conf£¬¼ÓÈëÒÔÏÂÁ½ÐÐ: ¡¡
¡¡QUOTE: ¡¡
¡¡ServerTokens ProductOnly ¡¡
¡¡ServerSignature Off ¡¡
¡¡PHP: ¡¡
¡¡Òþ²Ø PHP °æ±¾¾ÍÊÇÒþ²Ø "X-Powered-By: PHP/5.1.2-1+b1" Õâ¸ö£¬¿ªÆô php.ini£¬¼ÓÈë: ¡¡
¡¡QUOTE: ¡¡
¡¡expose_php = Off ¡¡
¡¡Apache ½ûֹĿ¼ä¯ÀÀ: ¡¡
¡¡½ûֹĿ ......
»·¾³Èí¼þ°æ±¾½éÉÜ£º
APACHE 2.0.59
PHP5.2.3
MYSQL5.0.45
GD-2.0.35
Zend Optimizer v3.3.0
  ......
Ïл°ÉÙ˵,ÏȽ«ËüÃÇ´ò°ü³ÉÒ»¸öÎļþ¾Í½Ðfun.php°É
< ?php
function passport_encrypt($txt, $key) {
srand((double)microtime() * 1000000);
$encrypt_key = md5(rand(0, 32000));
$ctr = 0;
$tmp = ''; ......