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
Ïà¹ØÎĵµ£º
PclZip¼ò½é
PclZipÊÇÒ»¸öºÜÇ¿´óµÄѹËõÓë½âѹËõzipÎļþµÄPHPÀ࣬PclZip libraryÄܹ»Ñ¹ËõÓë½âѹËõZip¸ñʽµÄѹËõµµ£¨WinZip¡¢PKZIP£©£»ÇÒÄܶԴËÀàÀ൵°¸½øÐд¦Àí£¬°üÀ¨²úÉúѹËõµµ¡¢ÁгöѹËõµµµÄÄÚÈÝÒÔ¼°½âѹËõµµ°¸µÈµÈ¡£
¼òµ¥¡¢Ò×Óá¢Ç¿´óÊÇÎÒ¶ÔËüµÄÆÀ¼Û¡£
×î½üÔÚ¿ª·¢ÎÒµÄWordpress²å¼þShareLink£¬ÔÚÕâ¹ý³ÌÖУ¬·¢ÏÖÁËPclZ ......
<?php
include_once('include/pclzip.lib.php');
$archive = new PclZip('archive.zip');
//½âѹËõµ½extract/folder/Õâ¸öĿ¼ÖÐ
$list = $archive->extract(PCLZIP_OPT_PATH, "extract/folder/");
//Ôö¼ÓÕâ¸öĿ¼ÔÚѹËõµµÖУ¬Íê³ÉÒÔºóѹËõµµÀïÃæ»áÓÐbackupÕâ¸öĿ¼£¬backupÀïÃæ»áÓÐÕâÁ½¸öµµ°¸ ......
ÕâÀï50¸öÓÐÒæµÄPHP¹¤¾ß£¬¿ÉÒÔ´ó´óÌá¸ßÄãµÄ±à³Ì¹¤×÷£º
µ÷ÊÔ¹¤¾ß
Webgrind
Xdebug
Gubed PHP Debugger
DBG
PHP_Debug
PHP_Dyn
MacGDBp
²âÊÔºÍÓÅ»¯¹¤¾ß
PHPUnit
SimpleTest
Selenium
PHP_CodeSniffer
dBug
PHP Profile Class
Îĵµ¹¤¾ß
phpDocumentor
PHP DOX
°²È«¹¤¾ß
Securimage
£ºÑéÖ¤Â빤¾ß¡£
Scave ......
´úÂëÈçÏÂ:
<?php
/* ÍøÕ¾ÑéÖ¤Âë³ÌÐò
* ÔËÐл·¾³£º PHP5.0.18 ϵ÷ÊÔͨ¹ý
* ÐèÒª gd2 ͼÐοâÖ§³Ö£¨PHP.INIÖÐ php_gd2.dll¿ªÆ ......