<?php
function TableHash($k,$m){
//°Ñ×Ö·û´®Kת»»Îª1¡«mÖ®¼äµÄÒ»¸öÖµ×÷Ϊ¶ÔÓ¦¼Ç¼µÄÉ¢ÁеØÖ·
$l = strlen($k);
$b = bin2hex($k);
$h = 0;
for($i=0;$i<$l;$i++){
//²ÉÓÃÒ»ÖÖ·½·¨¼ÆËãKËù¶ÔÓ¦µÄÕûÊý
$h += substr($b,$i*2,2);
}
$hash = ($h*1)%$m + 1;
return $hash;
}
//Ëæ±ãÕÒÁËÒ»¸öËæ»úº¯Êý²âÊÔÁËһϣ¬Êµ¼ÊÓõ½µÄÊÇemailÉ¢ÁеÄ
function str_rand($len){
$str = "";
$array = array("a","b","c","d","e","f","g","h","i","j","k","l","m",
"n","o","p","q","r","s","t","u","v","w","x","y","z",
"0","1","2","3","4","5","6","7","8","9");
$key = array_rand($array,$len);
for($i=0;$i<$len;$i++){
$str .= $array[$key[$i]];
}
return $str;
}
/**/
//²âÊÔ´úÂë
$s = array();
$l = 1000000; //×ÜÊý¾ÝÁ¿
$t = 10; //É¢ÁбíÊý
$x = 0; //±ê×¼·½²î
$time1 = explode(" ",microtime());
$time_1 = $time1[0] + $time1[1];
for($i=0;$i<$l;$i++){
$str = str_rand(rand(6,20));
$j = TableHash($str,$t);
$s[$j]++;
}
$time2 = explode(" ",microtime());
$time_2 = $time2[0] + $time2[1];
$use = $time_2 - $time_1;
$x1 = $l/$t;
$x2 = 0;
//Çó±ê×¼·½²î
foreach($s as $v){
$x3 = abs($v - $x1);
$x2 += $x3^2;
}
$x4 = sqrt($x2/$t)*100/$x1;
$x6 = min($s);
$x7 = max($s);
//Êä³ö½á¹û
echo "use time£º$use s \n";
echo "x = $x4 \n";
echo "min = $x6 \n";
echo "max = $x7 \n";
/**/
?>
²Î¿¼ÈçÏÂÎÄÕ£º
×÷Õߣºheiyeluren (ºÚҹ·ÈË)
²©¿Í£ºhttp://blog.csdn.net/heiyeshuwu
ʱ¼ä£º2007-01-19 01:44:20
Ò»¡¢¸ÅÊö
·Ö±íÊǸöÄ¿Ç°ËãÊDZȽϳ´µÄ±È½ÏÁ÷ÐеĸÅÄÌرðÊÇÔÚ´ó¸ºÔصÄÇé¿öÏ£¬·Ö±íÊÇÒ»¸öÁ¼ºÃ·ÖÉ¢Êý¾Ý¿âѹÁ¦µÄºÃ·½·¨¡£
Ê×ÏÈÒªÁ˽âΪʲôҪ·Ö±í£¬·Ö±íµÄºÃ´¦ÊÇʲô¡£ÎÒÃÇÏÈÀ´´ó¸ÅÁ˽âÒÔÏÂÒ»¸öÊý¾Ý¿âÖ´ÐÐSQLµÄ¹ý³Ì£º
½ÓÊÕµ½SQL --> ·ÅÈëSQLÖ´ÐжÓÁÐ --> ʹÓ÷ÖÎöÆ÷·Ö½âSQL --> °´ÕÕ·ÖÎö½á¹û½øÐÐÊý¾ÝµÄÌáÈ¡»òÕßÐÞ¸Ä --> ·µ»Ø´¦Àí½á¹û
µ±
È»£¬Õâ¸öÁ÷³Ìͼ²»Ò»¶¨ÕýÈ·£¬ÕâÖ»ÊÇÎÒ×Ô¼ºÖ÷¹ÛÒâʶÉÏÕâôÎÒÈÏΪ¡£ÄÇôÕâ¸ö´¦Àí¹ý³Ìµ±ÖУ¬×îÈÝÒ׳öÏÖÎÊÌâµÄÊÇʲô£¿¾ÍÊÇ˵£¬Èç¹ûÇ°Ò»¸öSQLûÓÐÖ´ÐÐÍê±ÏµÄ
»°£¬ºóÃæµÄSQLÊDz»»áÖ´Ðеģ¬ÒòΪΪÁ˱£Ö¤Êý¾ÝµÄÍêÕûÐÔ£¬±ØÐë¶ÔÊý¾Ý±íÎļþ½øÐÐËø¶¨£¬°üÀ¨¹²ÏíËøºÍ¶ÀÏíËøÁ½ÖÖËø¶¨¡£¹²ÏíËøÊÇÔÚËø¶¨µÄÆڼ䣬ÆäËüÏß³ÌÒ²¿É
ÒÔ·ÃÎÊÕâ¸öÊý¾ÝÎļþ£¬µ«ÊDz»ÔÊÐíÐ޸IJÙ×÷£¬ÏàÓ¦µÄ£¬¶ÀÏíËø¾ÍÊÇÕû¸öÎļþ¾ÍÊǹéÒ»¸öÏß³ÌËùÓУ¬ÆäËüÏß³ÌÎÞ·¨·ÃÎÊÕâ¸öÊý¾ÝÎļþ¡£Ò»°ãMySQLÖÐ×î¿ìµÄ´æ´¢Òý
ÇæMyISAM£¬ËüÊÇ»ùÓÚ±íËø¶¨µÄ£¬¾ÍÊÇ˵Èç¹ûÒ»Ëø¶¨µÄ»°£¬ÄÇôÕû¸öÊý¾ÝÎļþÍⲿ¶¼ÎÞ·¨·ÃÎÊ£¬±ØÐëµÈÇ°Ò»¸ö²Ù×÷Íê³Éºó£¬²ÅÄܽÓÊÕÏÂÒ»¸ö²Ù×÷£¬ÄÇôÔÚÕâ¸öÇ°
Ò»¸ö²Ù×÷ûÓÐÖ´ÐÐÍê³É£¬ºóÒ»¸ö²Ù×÷µÈ´ýÔÚ¶ÓÁÐÀïÎÞ·¨Ö´ÐеÄÇé¿ö½Ð×ö×èÈû£¬Ò»°ãÎÒÃÇͨË×ÒâÒåÉϽÐ×ö¡°Ëø±í¡±¡£
Ëø±íÖ±½Óµ¼Öµĺó¹ûÊÇʲô£¿¾ÍÊÇ´óÁ¿µÄSQLÎÞ·¨Á¢¼´Ö´ÐУ¬±ØÐëµÈ¶ÓÁÐÇ°ÃæµÄSQLÈ«²¿Ö´ÐÐÍê±Ï²ÅÄܼÌÐøÖ´ÐС£Õâ¸öÎÞ·¨Ö´ÐеÄSQL¾Í»áµ¼ÖÂûÓнá¹û£¬»òÕßÑÓ³ÙÑÏÖØ£¬Ó°ÏìÓû§ÌåÑé¡£
ÌرðÊǶÔÓÚһЩʹÓñȽÏƵ·±µÄ±í£¬±ÈÈçSNSϵͳÖеÄÓû§ÐÅÏ¢±í¡¢ÂÛ̳ϵͳÖеÄÌû×Ó±íµÈµÈ£¬¶¼ÊÇ·ÃÎÊÁ¿´óºÜ´óµÄ±í£¬ÎªÁ˱£Ö¤Êý¾ÝµÄ¿ìËÙÌáÈ¡·µ»Ø¸øÓû§£¬±ØÐëʹÓÃһЩ´¦Àí·½Ê½À´½â¾öÕâ¸öÎÊÌ⣬Õâ¸ö¾ÍÊÇÎÒ½ñÌìÒªÁĵ½µÄ·Ö±í¼¼Êõ¡£
·Ö
±í¼¼Êõ¹ËÃû˼Ò壬¾ÍÊÇ°ÑÈô¸É¸ö´æ´¢ÏàͬÀàÐÍÊý¾ÝµÄ±í·Ö³É¼¸¸ö±í·Ö±í´æ´¢£¬ÔÚÌáÈ¡Êý¾ÝµÄʱºò£¬²»Í¬µÄÓû§·ÃÎʲ»Í¬µÄ±í£¬»¥²»³åÍ»£¬¼õÉÙËø±íµÄ¼¸ÂÊ¡£±ÈÈ磬Ŀ
Ç°±£´æÓû§·Ö±íÓÐÁ½¸ö±í£¬Ò»¸öÊÇuser_1±í£¬»¹ÓÐÒ»¸öÊÇ user_2 ±í£¬Á½¸ö±í±£´æÁ˲»Í¬µÄÓû§ÐÅÏ¢£¬user_1
±£´æÁËÇ°10ÍòµÄÓû§ÐÅÏ¢£¬user_2±£´æÁ˺ó10ÍòÃûÓû§µÄÐÅÏ¢£¬ÏÖÔÚÈç¹ûͬʱ²éѯÓû§ heiyeluren1 ºÍ heiyeluren2
Õâ¸öÁ½¸öÓû§£¬ÄÇô¾ÍÊÇ·Ö±í´Ó²»Í¬µÄ±íÌáÈ¡³öÀ´£¬¼õÉÙËø±íµÄ¿ÉÄÜ¡£
ÎÒÏÂÃæÒª½²ÊöµÄÁ½ÖÖ·Ö±í·½·¨ÎÒ×Ô¼º¶¼Ã»ÓÐʵÑé¹ý£¬²»±£Ö¤×¼È·ÄÜÓã¬Ö»ÊÇÌṩһ¸öÉè¼Æ˼·¡£ÏÂÃæ¹ØÓÚ·Ö±íµÄÀý×ÓÎÒ¼ÙÉèÊÇÔÚÒ»¸öÌù°ÉϵͳµÄ»ù´¡ÉÏÀ´½øÐд¦ÀíºÍ¹¹½¨µÄ¡££¨Èç¹ûûÓÐÓùýÌù°ÉµÄÓû§¸Ï½ôGoogleһϣ©
¶þ¡¢»ùÓÚ»ù´¡±íµÄ·Ö±í´¦Àí
Õâ
¸ö»ùÓÚ»ù´¡±íµÄ·Ö±í´¦Àí·½Ê½´óÖµÄ˼Ïë¾ÍÊÇ£ºÒ»¸öÖ÷Òª±í£¬±£´æÁËËùÓеĻù±¾ÐÅÏ¢£¬Èç¹ûij¸öÏîÄ¿ÐèÒªÕÒµ½ËüËù´æ´¢µÄ±í£¬ÄÇô±ØÐë´ÓÕâ¸ö»ù´¡±íÖвéÕÒ³ö¶ÔÓ¦µÄ
±íÃûµÈÏîÄ¿£¬ºÃÖ±½Ó·ÃÎÊÕâ¸ö±í¡£Èç¹û¾õµÃÕâ¸ö»ù´¡±íËٶȲ»¹»¿ì£¬¿ÉÒÔÍêÈ«°ÑÕû¸ö»ù´¡±í±£´æÔÚ»º´æ»òÕßÄÚ´æÖУ¬·½±ãÓÐЧµÄ²éѯ¡£
ÎÒÃÇ»ùÓÚÌù°ÉµÄÇé¿ö£¬¹¹½¨¼ÙÉèÈçϵÄ3ÕÅ±í£º
1. Ìù°É°æ¿é±í: ±£´æÌù°ÉÖаæ¿éµÄÐÅÏ¢
2. Ìù°ÉÖ÷Ìâ±í£º±£´æÌù°ÉÖаæ¿éÖеÄÖ÷ÌâÐÅÏ¢£¬ÓÃÓÚä¯ÀÀ
3. Ìù°É»Ø¸´±í£º±£´æÖ÷ÌâµÄÔʼÄÚÈݺͻظ´ÄÚÈÝ
¡°Ìù°É°æ¿é±í¡±°üº¬ÈçÏÂ×ֶΣº
°æ¿éID board_id int(10)
°æ¿éÃû³Æ board_name char(50)
×Ó±íID table_id smallint(5)
²úÉúʱ¼ä created datetime
¡°Ìù°ÉÖ÷Ìâ±í¡±°üº¬ÈçÏÂ×ֶΣº
Ö÷ÌâID topic_id int(10)
Ö÷ÌâÃû³Æ topic_name char(255)
°æ¿éID board_id int(10)
´´½¨Ê±¼ä created datetime
¡°Ìù°É»Ø¸´±í¡±µÄ×Ö¶ÎÈçÏ£º
»Ø¸´ID reply_id int(10)
»Ø¸´ÄÚÈÝ reply_text text
Ö÷ÌâID topic_id int(10)
°æ¿éID board_id int(10)
´´½¨Ê±¼ä created datetime
ÄÇôÉÏÃæ±£´æÁËÎÒÃÇÕû¸öÌù°ÉÖеıí½á¹¹ÐÅÏ¢£¬Èý¸ö±í¶ÔÓ¦µÄ¹ØϵÊÇ£º
°æ¿é --> ¶à¸öÖ÷Ìâ
Ö÷Ìâ --> ¶à¸ö»Ø¸´
ÄÇô¾ÍÊÇ˵£¬±íÎļþ´óСµÄ¹ØϵÊÇ£º
°æ¿é±íÎļþ < Ö÷Ìâ±íÎļþ < »Ø¸´±íÎļþ
ËùÒÔ»ù±¾¿ÉÒÔÈ·¶¨ÐèÒª¶ÔÖ÷Ìâ±íºÍ»Ø¸´±í½øÐÐ·Ö±í£¬ÒÑÔö¼ÓÎÒÃÇÊý¾Ý¼ìË÷²éѯ¸ü¸ÄʱºòµÄËٶȺÍÐÔÄÜ¡£
¿´ÁËÉÏÃæµÄ±í½á¹¹£¬»áÃ÷ÏÔ·¢ÏÖ£¬ÔÚ¡°°æ¿é±í¡±Öб£´æÁËÒ»¸ö"table_id"×ֶΣ¬Õâ¸ö×ֶξÍÊÇÓÃÓÚ±£´æÒ»¸ö°æ¿é¶ÔÓ¦µÄÖ÷ÌâºÍ»Ø¸´¶¼ÊÇ·Ö±í±£´æÔÚʲô±íÀïµÄ¡£
±ÈÈçÎÒÃÇÓÐÒ»¸ö½Ð×ö¡°PHP¡±µÄÌù°É£¬board_idÊÇ1£¬×Ó±íIDÒ²ÊÇ1£¬ÄÇôÕâÌõ¼Ç¼¾ÍÊÇ£º
board_id | board_name | table_id | created
1 | PHP | 1 | 2007-01-19 00:30:12
ÏàÓ¦µÄ£¬Èç¹ûÎÒÐèÒªÌáÈ¡¡°PHP¡±°ÉÀïµÄËùÓÐÖ÷Ì⣬ÄÇô¾Í±ØÐë°´ÕÕ±íÀï±£´æµÄtable_idÀ´×éºÏÒ»¸ö´æ´¢ÁËÖ÷ÌâµÄ±íÃû³Æ£¬±ÈÈçÎÒÃÇÖ÷Ìâ±íµÄǰ׺ÊÇ¡°topic_¡±£¬ÄÇô×éºÏ³öÀ´¡°PHP¡±°É¶ÔÓ¦µÄÖ÷Ìâ±íÓ¦¸ÃÊÇ£º¡°topic_1¡±£¬ÄÇôÎÒÃÇÖ´ÐУº
»ùÓÚHashËã·¨µÄ·Ö±í´¦Àí
ÎÒÃÇÖªµÀHash±í¾ÍÊÇͨ¹ýij¸öÌØÊâµÄHashËã·¨¼ÆËã³öµÄÒ»¸öÖµ£¬Õâ¸öÖµ±ØÐëÊÇΩһµÄ£¬²¢ÇÒÄܹ»Ê¹ÓÃÕâ¸ö¼ÆËã³öÀ´µÄÖµ²éÕÒµ½ÐèÒªµÄÖµ£¬Õâ¸ö½Ð×ö¹þÏ£±í¡£
ÎÒÃÇÔÚ·Ö±íÀïµÄhashËã·¨¸úÕâ¸ö˼ÏëÀàËÆ£ºÍ¨¹ýÒ»¸öÔʼĿ±êµÄID»òÕßÃû³Æͨ¹ýÒ»¶¨µÄhashËã·¨¼ÆËã³öÊý¾Ý´æ´¢±íµÄ±íÃû£¬È»ºó·ÃÎÊÏàÓ¦µÄ±í¡£
¼ÌÐøÄÃÉÏÃæµÄÌù°ÉÀ´Ëµ£¬Ã¿¸öÌù°ÉÓаæ¿éÃû³ÆºÍ°æ¿éID£¬ÄÇôÕâÁ½ÏîÖµÊǹ̶¨µÄ£¬²¢ÇÒÊÇΩһµÄ£¬ÄÇôÎÒÃǾͿÉÒÔ¿¼ÂÇͨ¹ý¶ÔÕâÁ½ÏîÖµÖеÄÒ»Ïî½øÐÐһЩÔËËãµÃ³öÒ»¸öÄ¿±ê±íµÄÃû³Æ¡£
ÏÖÔÚ¼ÙÈçÎÒÃÇÕë¶ÔÎÒÃÇÕâ¸öÌù°Éϵͳ£¬¼ÙÉèϵͳ×î´óÔÊÐí1ÒÚÌõÊý¾Ý£¬¿¼ÂÇÿ¸ö±í±£´æ100ÍòÌõ¼Ç¼£¬ÄÇôÕû¸öϵͳ¾Í²»³¬¹ý100¸ö±í¾ÍÄܹ»ÈÝÄÉ¡£°´ÕÕÕâ¸ö±ê×¼£¬ÎÒÃǼÙÉèÔÚÌù°ÉµÄ°æ¿éIDÉϽøÐÐhash£¬»ñµÃÒ»¸ökeyÖµ£¬Õâ¸öÖµ¾ÍÊÇÎÒÃǵıíÃû£¬È»ºó·ÃÎÊÏàÓ¦µÄ±í¡£
ÎÒÃǹ¹ÔìÒ»¸ö¼òµ¥µÄhashËã·¨£º
function get_hash($id){
$str = bin2hex($id);
$hash = substr($str, 0, 4);
if (strlen($hash)<4){
$hash = str_pad($hash, 4, "0");
}
return $hash;
}
Ëã·¨´óÖ¾ÍÊÇ´«ÈëÒ»¸ö°æ¿éIDÖµ£¬È»ºóº¯Êý·µ»ØÒ»¸ö4λµÄ×Ö·û´®£¬Èç¹û×Ö·û´®³¤¶È²»¹»£¬Ê¹ÓÃ0½øÐв¹È«¡£
±È
È磺get_hash(1)£¬Êä³öµÄ½á¹ûÊÇ¡°3100¡±£¬ÊäÈ룺get_hash(23819)£¬µÃµ½µÄ½á¹ûÊÇ£º3233£¬ÄÇôÎÒÃǾ¹ý¼òµ¥µÄ¸ú±íǰ׺×é
ºÏ£¬¾ÍÄܹ»·ÃÎÊÕâ¸ö±íÁË¡£ÄÇôÎÒÃÇÐèÒª·ÃÎÊIDΪ1µÄÄÚÈÝʱºòŶ£¬×éºÏµÄ±í½«ÊÇ£ºtopic_3100¡¢reply_3100£¬ÄÇô¾Í¿ÉÒÔÖ±½Ó¶ÔÄ¿±ê±í½ø
ÐзÃÎÊÁË¡£
µ±È»£¬Ê¹ÓÃhashËã·¨ºó£¬Óв¿·ÖÊý¾ÝÊÇ¿ÉÄÜÔÚͬһ¸ö±íµÄ£¬ÕâÒ»µã¸úhash±í²»Í¬£¬hash±íÊǾ¡Á¿½â¾ö³åÍ»£¬ÎÒÃÇÕâÀï²»ÐèÒª£¬µ±È»Í¬ÑùÐèÒªÔ¤²âºÍ·ÖÎö±íÊý¾Ý¿ÉÄܱ£´æµÄ±íÃû¡£
Èç¹ûÐèÒª´æ´¢µÄÊý¾Ý¸ü¶à£¬Í¬ÑùµÄ£¬¿ÉÒÔ¶Ô°æ¿éµÄÃû×Ö½øÐÐhash²Ù×÷£¬±ÈÈçÒ²ÊÇÉÏÃæµÄ¶þ½øÖÆת»»³ÉÊ®Áù½øÖÆ£¬ÒòΪºº×Ö±ÈÊý×ÖºÍ×ÖĸҪ¶àºÜ¶à£¬ÄÇôÖظ´¼¸ÂʸüС£¬µ«ÊÇ¿ÉÄÜ×éºÏ³ÉµÄ±í¾Í¸ü¶àÁË£¬ÏàÓ¦¾Í±ØÐ뿼ÂÇһЩÆäËüµÄÎÊÌâ¡£
¹é¸ù½áµ×£¬Ê¹ÓÃhash·½Ê½µÄ»°±ØÐëÑ¡ÔñÒ»¸öºÃµÄhashËã·¨£¬²ÅÄÜÉú³É¸ü¶àµÄ±í£¬È»Êý¾Ý²éѯµÄ¸üѸËÙ¡£
¡¾ÓŵãhashËã·¨Ö±½ÓµÃ³öÄ¿±ê±íÃû³Æ£¬Ð§Âʺܸߡ¿Í¨¹ý
¡¾ÁÓÊÆ¡¿À©Õ¹ÐԱȽϲѡÔñÁËÒ»¸öhashËã·¨£¬¶¨ÒåÁ˶àÉÙÊý¾ÝÁ¿£¬ÒÔºóÖ»ÄÜÔÚÕâ¸öÊý¾ÝÁ¿ÉÏÅÜ£¬²»Äܳ¬¹ý¹ýÕâ¸öÊý¾ÝÁ¿£¬¿ÉÀ©Õ¹ÐÔÉÔ²î
ËÄ¡¢ÆäËüÎÊÌâ
1. ËÑË÷ÎÊÌâ
ÏÖÔÚÎÒÃÇÒѾ½øÐзֱíÁË£¬ÄÇô¾ÍÎÞ·¨Ö±½Ó¶Ô±í½øÐÐËÑË÷£¬ÒòΪÄãÎÞ·¨¶Ô¿ÉÄÜϵͳÖÐÒѾ´æÔڵļ¸Ê®»òÕß¼¸°Ù¸ö±í½øÐмìË÷£¬ËùÒÔËÑË÷±ØÐë½èÖúµÚÈý·½µÄ×é¼þÀ´½øÐУ¬±ÈÈçLucene×÷ΪվÄÚËÑË÷ÒýÇæÊǸö²»´íµÄÑ¡Ôñ¡£
2. ±íÎļþÎÊÌâ
ÎÒ ÃÇÖªµÀMySQLµÄMyISAMÒýÇæÿ¸ö±í¶¼»áÉú³ÉÈý¸öÎļþ£¬*.frm¡¢*.MYD¡¢*.MYI
Èý¸öÎļþ£¬·Ö±íÓÃÀ´±£´æ±í½á¹¹¡¢±íÊý¾ÝºÍ±íË÷Òý¡£LinuxÏÂÃæÿ¸öĿ¼ÏµÄÎļþÊýÁ¿×îºÃ²»Òª³¬¹ý1000¸ö£¬²»È»¼ìË÷Êý¾Ý½«¸üÂý£¬ÄÇôÿ¸ö±í¶¼»áÉú³ÉÈý
¸öÎļþ£¬ÏàÓ¦µÄÈç¹û·Ö±í³¬¹ý300¸ö±í£¬ÄÇô½«¼ìË÷·Ç³£Âý£¬ËùÒÔÕâʱºò¾Í±ØÐëÔÙ½øÐз֣¬±ÈÈçÔÚ½øÐÐÊý¾Ý¿âµÄ·ÖÀë¡£
ʹÓûù´¡±í£¬ÎÒÃÇ¿ÉÒÔÐÂÔö¼ÓÒ»¸ö×ֶΣ¬ÓÃÀ´±£´æÕâ¸ö±í±£´æÔÚʲôÊý¾Ý¡£Ê¹ÓÃHashµÄ·½Ê½£¬ÎÒÃDZØÐë½ØÈ¡hashÖµÖеڼ¸Î»À´×÷ΪÊý¾Ý¿âµÄÃû×Ö¡£ÕâÑù£¬ÍêºÃµÄ½â¾öÕâ¸öÎÊÌâ¡£
ÍƼöÐÅÏ¢
- ¡¾ÊÓƵ²¥·Å¡¿JplayerÊÓƵ²¥·ÅÆ÷µÄʹÓÃ
- memcacheÄÚ´æÔÀí
- Memcache¼¼Êõ·ÖÏí£º½éÉÜ¡¢Ê¹Óᢴ洢¡¢Ëã·¨¡¢ÓÅ»¯....
- php³£ÓÃÕýÔò±í´ïʽ
- phpÐÔÄܼà²âÄ£¿éXHProf
- ÈÃCI¿ò¼ÜÖ§³Öservice²ã
- ʹÓÃPHPÉú³É´øLOGOµÄ¸öÐÔ»¯¶þάÂëͼÏñ
- ¹ØÓÚCodeIgniterÄã¿ÉÄܲ»ÖªµÀµÄ5¸ö֪ʶµã
- Memcache ºÁÃ뼶³¬Ê±¼°ÆäËû³£¼ûÎÊÌâ»ã×Ü
- [PHP±Ê¼Ç]PHPQueryÒ»¸ö´¦ÀíDOMµÄÀûÆ÷
ÈÈÃÅÐÅÏ¢
- nohup: redirecting stderr to stdou....
- ʹÓÃlog_formatΪNginx·þÎñÆ÷ÉèÖøüÏêϸµÄÈÕÖ¾¸ñʽ
- jquery easyUI--dataGrid-Json
- [Ô´´]·ÂGoogle Reader¡¢ÐÂÀË΢²©¡¢ÌÚѶ΢²©µ....
- ÀûÓÃKeepalived+mysql¹¹½¨¸ß¿ÉÓÃMySQLË«Ö÷×Ô¶....
- Nginx+keepalivedʵÏÖ¸ºÔؾùºâºÍË«»úÈȱ¸¸ß¿ÉÓÃ
- jqueryʵÏÖÒ³Ãæ¼ÓÔؽø¶ÈÌõ
- Rolling cURL: PHP²¢·¢×î¼Ñʵ¼ù
- codeigniter ·ÓÉÖÕ¼«ÓÅ»¯(url rewrite)
- linuxÏÂÉèÖÃsshÎÞÃÜÂëµÇ¼
×î½ü¸üÐÂ
- PHP»ñÈ¡Óû§µÄÕæʵIP£¬²¢ÅжÏÊÇ·ñÄÚÍøIP
- PHP ´íÎóÈÕÖ¾ error_log
- ÀûÓÃbigpipe»úÖÆʵÏÖÒ³ÃæÄ£¿éµÄÒì²½äÖȾ chunked¼¼Êõ
- php¿ØÖÆÎļþÏÂÔØËÙ¶È
- js + php ¶ÁÈ¡¡¢²¥·ÅÊÓƵÁ÷ ¼æÈÝfirefox£¬c....
- ¡¾ÊÓƵ²¥·Å¡¿JplayerÊÓƵ²¥·ÅÆ÷µÄʹÓÃ
- UNICODE Óë UTF-8 µÄ¹Øϵ
- memcacheÄÚ´æÔÀí
- Memcache¼¼Êõ·ÖÏí£º½éÉÜ¡¢Ê¹Óᢴ洢¡¢Ëã·¨¡¢ÓÅ»¯....
- phpʹÓÃmb_detect_encoding¼ì²â×Ö·û´®±àÂë
ÆÀÂÛ