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

BMH×Ó´®²éÕÒËã·¨(PHPʵÏÖ)

´úÂëinterface StringSearchable
{
    public function search($substring, $buffer);
}
class BoyerMooreStringSearch implements StringSearchable
{
    public $substring = null;
    public $buffer = '';
    public $jumpTable = array();
    protected $results = array();
    public function __construct()
    {    
        
    }
    public function __destruct()
    {
    }
    public function search($substring, $buffer)
    {    
        $this->results = array();
        $this->substring = $substring;
        $this->buffer = $buffer;
        $this->deriveJumpTable();
        
        $substringLen = strlen($this->substring);
        $currentCharIndex = $substringLen - 1;
        $bufferLen = strlen($this->buffer);
        while ($currentCharIndex < $bufferLen) {    
            for ($i = $substringLen - 1; $i >= 0; $i--) {
           &nb


Ïà¹ØÎĵµ£º

PHPѹËõÓë½âѹËõPCLZIP(±ê×¼°æ)

<?php
include_once('include/pclzip.lib.php');
$archive = new PclZip('archive.zip');
//½âѹËõµ½extract/folder/Õâ¸öĿ¼ÖÐ
$list = $archive->extract(PCLZIP_OPT_PATH, "extract/folder/");

//Ôö¼ÓÕâ¸öĿ¼ÔÚѹËõµµÖУ¬Íê³ÉÒÔºóѹËõµµÀïÃæ»áÓÐbackupÕâ¸öĿ¼£¬backupÀïÃæ»áÓÐÕâÁ½¸öµµ°¸ ......

PHP±àÂë¹æ·¶

1 Îļþ½á¹¹
|
|¨D¨Dimages
|¨D¨Dinclude
¡¡¡¡|¨D¨Dparameter
¡¡¡¡|¨D¨Dconfig
¡¡¡¡|¨D¨Dfunction
|¨D¨Dindex
images´æ·ÅͼƬÎļþ£¬includeÖÐÊÇϵͳÊÇÒªÒýÓõÄÎļþ£¬Ò»°ãÔÚparameterÖдæ·Å²ÎÊýÎļþ£¬configÖдæ·ÅÅäÖÃÎļþ£¬functionÖдæ·Å·½·¨Îļþ£¬ÈçjavascriptµÄ·½·¨µÈ£¬²¢°´¹¦ÄÜÄ£¿éµÄ·ÖÀ࣬½«¸÷¹¦ÄܵÄÀàÒ²·ÅÈëÆä ......

PHP²Ù×÷mysqlÊý¾Ý¿â¼òµ¥Ê¾Àý

ÏÈ´´½¨Ò»¸öÊý¾Ý¿âMyDB
CREATE DATABASE `mydb` ;
ÔÙ´´½¨Ò»¸ö¼òµ¥µÄÊý¾Ý±í
CREATE TABLE `MyDB`.`MyTable` (
`Name` VARCHAR( 20 ) NOT NULL ,
`Age` INT NOT NULL
) ENGINE = MYISAM
²åÈëһЩÊý¾Ý
INSERT INTO `mydb`.`mytable` (
`Name` ,
`Age`
)
VALUES (
'Jim', '15'
), (
'Amy', '16'
), (
'Jack' ......

php ÑéÖ¤Âë×ܽá

´úÂëÈçÏÂ:
    <?php
       /*   ÍøÕ¾ÑéÖ¤Âë³ÌÐò
        *   ÔËÐл·¾³£º PHP5.0.18 ϵ÷ÊÔͨ¹ý
        *   ÐèÒª gd2 ͼÐοâÖ§³Ö£¨PHP.INIÖÐ php_gd2.dll¿ªÆ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ