Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

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µÄº¯Êý¡£¿´À´Õâ¸öÊÇÕæµÄ²»Ö§³ÖÁË¡£


Ïà¹ØÎĵµ£º

ѧϰphp Reflection£¨¶þ£©

(4)Ó³ÉäÀà(ReflectionClass)
ReflectionClassÀàÔÊÐíÄã·´ÏòÓ³ÉäÀà¡£
<?
php
interface MySerializable  
{    
// ...}
class My
Object
 
{    
// ...}
/** A counter class */
class 
Counter 
exten ......

php Mod rewrite test

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 ¼° PHP µÄ°æ±¾Òþ²Ø

µ¼¶Á£º ¡¡
¡¡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 ½ûֹĿ¼ä¯ÀÀ: ¡¡
¡¡½ûֹĿ ......

Linux ÏÂphpµÄ°²×°

»·¾³Èí¼þ°æ±¾½éÉÜ£º
 
   APACHE 2.0.59
   PHP5.2.3
   MYSQL5.0.45
   GD-2.0.35
   Zend Optimizer v3.3.0
  
                     ......

ѸËÙѧ»áPHP¼ÓÃܽâÃܼ¼ÇÉ

Ïл°ÉÙ˵,ÏȽ«ËüÃÇ´ò°ü³ÉÒ»¸öÎļþ¾Í½Ðfun.php°É
< ?php  
function passport_encrypt($txt, $key) {  
srand((double)microtime() * 1000000);  
$encrypt_key = md5(rand(0, 32000));  
$ctr = 0;  
$tmp = ''; ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ