¹ØÓÚMemcacheDB PHP¿Í»§¶ËµÄÎÊÌâ¼°½â¾ö°ì·¨
http://blog.developers.api.sina.com.cn/?p=264
×î½üMemcacheDBÓʼþÁбíºÍÑз¢²¿ÄDZßͬʱ¨¸æPHPµÄmemcache¿Í»§¶Ëphp-memcache¾³£³ö ÏÖ¶ÏÁ¬½ÓµÄÎÊÌ⣺
PHP Notice: Memcache::get(): Server ………. (tcp 11211) failed with: Failed reading line from stream (0) with pecl-memcache 3.*
….
Õâ¸öÎÊÌâÓÉÀ´ÒѾã¬ÎÒÃǵĽâÊÍÊÇMemcacheDBµÄÑÓ³ÙÊÜ´ÅÅÌдÈëÓ°Ïì (checkpointʱ, memtrickleʱ)»áÓÐÒ»µãµÄ¸¡¶¯¡£ËäÈ»ÕûÌåÑÓ³Ù²»ÊǺܸߣ¬µ«ÊÇ Ïà±ÈÓÚMemcached´¿ÄÚ´æÉԸߡ£¶øPHP memcacheºê¹ÛÉÏÈÏΪÊÇcacheÐÐΪ£¬»á¶ÔÑÓ ³ÙÉԸߵÄÁ¬½ÓÈÓµô£¨ÆäÈÏΪÑӳٸ߾ÍʧȥcacheµÄÒâÒ壩¡£
½â¾ö°ì·¨ÊÇʹÓÃandreizµÄphp-memcached:
http://pecl.php.net/package/memcached
http://github.com/andreiz/php-memcached/tree/master
php-memcachedÊÇbrianµÄlibmemcached¿âµÄphp wrapper. libmemcachedÊÇÒ»¸ö ǰ;¹âÃ÷µÄmemcacheÐÒéc/c++¿Í»§¶Ë¿â£¬Î´À´¶Ô¶þ½øÖÆ°æ±¾µÄÖ§³Ö£¬ÁíÍ⼫ÓпÉÄÜ°üÀ¨MemcacheDBµÄÀ©Õ¹ÃüÁîrgetµÈµÄÖ§³Ö£¨ÒѾÁªÏµºÃ×÷ÕßÌá½»patch£©
ÎÒ¶Ôphp-memcacheºÍphp-memcachedÁ½¸ö¿Í»§¶Ë×÷Á˼òµ¥µÄÆÀ¹À¡£·Ö±ðset 1000 ÍòÌõ200×Ö½ÚµÄvalue£¬ÆäÖÐphp-memcache±íÏֵôàÈõ£¬Á¬½ÓƵƵ¶Ïµô¡£¶øphp- memcachedÒÀÈ»±£³Ö¼áͦ£¬´Óδ¶Ï¹ý¡£
Ïà¹ØÎĵµ£º
²Ù×÷ϵͳ: windows xp
php°æ±¾:5.2.5 http://www.php.net/downloads.php
Apache http server °æ±¾:2.2.6http://httpd.apache.org/download.cgi
Mysql°æ±¾: 6.0.3http://dev.mysql.com/get/Downloads/MySQL-6.0
1.apacheµÄ°²×°:
1)Ë«»÷apache_2.2.6-win32-x86-no_ssl.msiͼ±ê£¬Æô¶¯apache°²×°³ÌÐò£»
2£©°²×°ÒÔÒ»¸ö»¶Ó ......
ÕæµÄÊDz»Óò»ÖªµÀ£¬ÆäʵÎÒÃÇÊìϤµÄ PHP »¹ÓкܶàºÃ¶«Î÷ûÓз¢¾ò¡£¿´
µ½ÕâƪÎÄÕÂ
£¬µ±Ê±¾ÍÀá±¼Á˺ü¸»Ø£¬ÖصãÍƼöÏ£¬Ë³±ãÎÒ×Ô¼ºÒ²×ö¸öÕûÀí¡£
sys_getloadavg()
Õâ¸öº¯Êý
·µ»Øµ±Ç°ÏµÍ³µÄ¸ºÔؾùÖµÐÅÏ¢
£¨µ±È» Windows
ϲ»ÊÊÓã©£¬ÏêϸÎĵµ¿ÉÒÔ·ÔÄ PHP µÄÏà¹ØÎĵµ¡£ÎĵµÖÐÓжÎʾÀý´úÂ룬»ù±¾ÉÏÒ²¾ÍÄÜ¿´³öËüµÄÓÃ;ÁË¡ ......
ÈçºÎͨ¹ýPHP½«excelµÄÊý¾Ýµ¼ÈëMySQLÖÐ
ÔÚ¿ª·¢PHP³ÌÐòʱ£¬ºÜ¶àʱºòÎÒÃÇ»áÓн«Êý¾ÝÅúÁ¿µ¼ÈëÊý¾Ý¿âµÄÐèÇó£¬ÈçѧÉúÐÅÏ¢ÅúÁ¿Ìí¼Óµ½Êý¾Ý¿âÖУ¬¶øÊÂÏÈÓÃexcel±àÅźã¬¶ÔexcelʵÐвÙ×÷£¬±ãÊÇÎÒÃDZȽϳ£ÓõÄÑ¡Ôñ·½Ê½¡£
ÔÚ¶ÔexcelµÄ²Ù×÷ÖУ¬phpExcelReade±ãÊǺܶàÈ˵Ĺ²Í¬ ......
×î½üÏëд¸öÈí¼þÍæÍ棬ץȡÍøÒ³ÉϵÄÄÚÈÝ
ץȡÍøÒ³ÄÚÈݵÄÎÒ·ÅÔÚÒ»¸öÎļþÖÐд³ÉÀàÁË
ÒÔÏÂÊÇ´úÂë
<?php
class myhttp
{
var $_host;
var $_url;
var $_port;
var $_errno;
var $_errstr;
va ......