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

phpÖ§³Ömemcache

memcache¸öÈËÀí½âÖ÷ÒªÊÇÓÃÀ´¹ÜÀíÄÚ´æµÄ,phpºÍmemcache½áºÏ¾Í¿ÉÒÔʹphp°ÉһЩÊý¾Ý±£´æÔÚmemcache¹ÜÀíµÄÄÚ´æÀï,·½±ã¹ÜÀí,Ò²¿ì,»¹Ö§³Ö¶ą̀·þÎñÆ÷¹²ÏíÊý¾Ý,·Ï»°²»¶à˵. ·ÖΪlinuxºÍwindows 1)linuxºÍÀàUnix¿ÉÒÔ´ÓÒÔϵØÖ·ÏÂÔØmemcachedºÍlibevent,ÓÉÓÚ°²×°memcacheÐèÒªlibeventÖ§³Ö,ËùÒÔÐèÒªÏÈ°²×°libevent memcached¹Ù·½°æ±¾ÏÂÔصØÖ·£ºhttp://www.danga.com/memcached/ libevent¹Ù·½°æ±¾ÏÂÔصØÖ·£ºhttp://monkey.org/%7Eprovos/libevent/ °²×°libevent: $tar xvzf libevent-***-stable.tar.gz $cd libevent-***-stable $./configure --prefix=/usr/local/libevent#Ñ¡¶¨libevent°²×°Ä¿Â¼ $make $make install È»ºó°²×°memcached $tar xvzf memcached-***.tar.gz $cd memcached-*** $./configure --prefix=/usr/local/memcache –with-libevent=/usr/local/libevent#Ìí¼Ólibevent°²×°Ä¿Â¼ $make $make install È»ºóÆô¶¯memcached,È«µÄ²ÎÊý¿ÉÒÔÓÃ/usr/local/memcached/bin/memcached -h²é¿´ ¼òµ¥½éÉܼ¸¸ö: -d ÒÔÊØ»¤³ÌÐò£¨daemon£©·½Ê½ÔËÐÐ memcached£»
-m ÉèÖà memcached ¿ÉÒÔʹÓõÄÄÚ´æ´óС£¬µ¥Î»Îª M£»
-l ÉèÖüàÌýµÄ IP µØÖ·£¬Èç¹ûÊDZ¾»úµÄ»°£¬Í¨³£¿ÉÒÔ²»ÉèÖô˲ÎÊý£»
-p ÉèÖüàÌýµÄ¶Ë¿Ú£¬Ä¬ÈÏΪ 11211£¬ËùÒÔÒ²¿ÉÒÔ²»ÉèÖô˲ÎÊý£»
-u Ö¸¶¨Óû§£¬Èç¹ûµ±Ç°Îª root µÄ»°£¬ÐèҪʹÓô˲ÎÊýÖ¸¶¨Óû§¡£ ¿ÉÒÔÕâÑùÆô¶¯: $/usr/local/memcached/bin/memcached -d -m 128 -l 127.0.0.1 -p 11211 -u nobody ÕâÊDZ¾»úÉÏ×ö×ÅÍæµÄËùÒÔipµÄ127.0.0.1 Æô¶¯Ê±¿ÉÄÜÓöµ½´íÎó error while loading shared libraries: libevent-1.4.so.2: cannot open shared object file: No such file or directory ¼ÓÔز»µ½libeventÀà¿â ¿ÉÒÔÓÃ$DL_DEBUG=libs ./memcached –v ÏÔʾ¿ÉÄÜÈçÏÂ:
    20421:     find library=libevent-1.4.so.2; searching
    20421:      search cache=/etc/ld.so.cache
    20421:      search path=/lib/tls/i686/sse2:/lib/tls/i686:/lib/tls/sse2:/lib/tls:/lib/i686/sse2:/lib/i686:/lib/sse2:/lib:/usr/lib/tls/i686
/sse2:/usr/lib/tls/i686:/usr/lib/tls/sse2:/usr


Ïà¹ØÎĵµ£º

PHPÍøÕ¾¿ª·¢¹ý³ÌÖÐ×¢ÒâÕâЩ°²È«ÖªÊ¶

1¡¢¹ÅÀϵÄÆÛÆ­SQLÓï¾ä
ÔÚĬÈÏģʽÏ£¬¼´Ê¹ÊÇÄãÍüÁË°Ñphp.ini¿½µ½/usr/local/lib/php.iniÏ£¬php»¹ÊÇ´ò¿ªmagic_quotes_gpc=on¡£
ÕâÑùËùÓдÓGET/POST/CookieÀ´µÄ±äÁ¿µÄµ¥ÒýºÅ(')¡¢Ë«ÒýºÅ(")¡¢·´Ð±¸Übackslash(\)ÒÔ¼°¿Õ×ÖÔªNUL
(the null byte)¶¼»á±»¼ÓÉÏ·´Ð±¸Ü£¬ÒÔʹÊý¾Ý¿âÄܹ»ÕýÈ·²éѯ¡£
µ«ÊÇÔÚphp-4-RC2µÄʱºòÒýÈë ......

ÅäÖÃFCKÉÏ´«£¨PHP£©


ҪʹÄúµÄFCKeditorÄܹ»Ê¹ÓÃÉÏ´«¹¦ÄÜ£¬Äú±ØÐë½øÐÐÒÔÏÂÅäÖÆ¡£
×¢Ò⣺FCKeditor²»Ö§³ÖÐéÄâĿ¼£¬ÄúµÄ·¾¶ÉèÖö¼ÊÇÕë¶ÔÍøÕ¾¸ùĿ¼µÄ¾ø¶Ô·¾¶¶øÑԵġ£Õâµã¶ÔÓÚ·¢²¼µ½Ô¶³ÌÍøվĿ¼µÄ¿ª·¢Õß¼«Îª²»±ã£¬ºóÃæÎÒÃÇ»á¶Ô´Ë½øÐÐÌÖÂÛ¡£
Ò»¡¢´ò¿ªfckeditor\editor\filemanager\upload\php\config.php£¬ÕÒµ½´úÂë$Config['Enabled']£¬½«Öµ ......

Apache URL RewriteÅäÖÃ(php α¾²Ì¬)

Ò»°ãÇé¿öÏ£¬ÔÚ¿ª·¢»·¾³ÖзÃÎÊÒ»¸ö¾ßÌåÉÌÆ·µÄURLÊÇÕâÑùµÄ£º
http://localhost/phptest/show.php?id=1
µ«ÊÇÎÒÐèÒª¸ü¸ÄÒ»ÏÂURL£¬¶ÔËÑË÷ÒýÇæ¸üÓѺã¬È磺
http://localhost/phptest/1.html
ÕâÖ»ÊǾÙÀý°ÕÁË¡£
ÏÂÃæÎÒÃÇÀ´¿´¿´£¬ÕâÁ½ÌìÁ´½Ó×îºó´ïµ½µÄЧ¹ûÊÇÒ»ÑùµÄ£¬Çë×¢Òâä¯ÀÀÆ÷µØÖ·£¡
1¡¢Õý³£·ÃÎÊ£º
2¡¢Î±¾²Ì¬ºó£º
½ÓÏÂÀ ......

php4 xml Éú³ÉÀà

ÓÉÓÚ ÔÚphp4µÄ»·¾³ÏÂ. ¶¼Ã»ÕÒµ½×Ô¶¯Éú³ÉµÄº¯Êý. ËùÒÔ×Ô¼º¸ÄдÁËÒ»¸ö±ðÈËЩµÄÀà. ÓÃÀ´×Ô¶¯Éú³Éxml Îļþ.
<?php
/*
*** ¹¦ÄÜ : php4×Ô動Éú³Éxml Îļþ類
*** @ edit: zxwo0o
*** @ time: 2009-9-22
*/
class php4xml{
var $version; //°æ±¾號
var $start; ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ