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

phpÖÐsession¹ýÆÚµ«¼Ç¼²¢²»É¾³ýµÄÔ­Òò


Ç°Ò»ÕóдÁËÒ»¸ö¼òµ¥µÄÀ࣬½«session´æÈëÊý¾Ý¿â£¬µ±session_destroy()ʱ»á½«¿âÖеÄsession¼Ç¼ɾ³ý£¬¶ø¹ýÁËmaxlifetimeʱsession¼Ç¼ȴ»¹ÔÚ£¬µ±Ê±ºÜ²»Àí½â¡£
½ñÌìÓÖ¿´ÁËÏÂphp.ini£¬ÕÒµ½Á˹ØÓÚsessionµÄÅäÖã¬Ã÷°×ÁËÔ­Òò¡£
; Define the probability that the 'garbage collection' process is started
; on every session initialization.
; The probability is calculated by using gc_probability/gc_divisor,
; e.g. 1/100 means there is a 1% chance that the GC process starts
; on each request.
session.gc_probability = 1
session.gc_divisor     = 1000
ÒÔÉÏÊÇĬÈÏÅäÖã¬Ò²¾ÍÊÇsession³õʼ»¯µÄʱºòÖ»ÓÐ1/1000µÄ¸ÅÂÊÆô¶¯GC process£¬Õâ¾ÍÊÇÔ­ÒòËùÔÚ¡£
¸Ä±äÅäÖÃÈçÏ£º
session.gc_probability = 1
session.gc_divisor     = 1
ÔÙÊÔÑéһϣ¬Êý¾Ý¿âÖг¬ÆÚµÄsession¼Ç¼ÿ´Î¶¼»áɾ³ýÁË£¬³É¹¦¡£


Ïà¹ØÎĵµ£º

phpÖ§³Ömemcache

memcache¸öÈËÀí½âÖ÷ÒªÊÇÓÃÀ´¹ÜÀíÄÚ´æµÄ,phpºÍmemcache½áºÏ¾Í¿ÉÒÔʹphp°ÉһЩÊý¾Ý±£´æÔÚmemcache¹ÜÀíµÄÄÚ´æÀï,·½±ã¹ÜÀí,Ò²¿ì,»¹Ö§³Ö¶ą̀·þÎñÆ÷¹²ÏíÊý¾Ý,·Ï»°²»¶à˵. ·ÖΪlinuxºÍwindows 1)linuxºÍÀàUnix¿ÉÒÔ´ÓÒÔϵØÖ·ÏÂÔØmemcachedºÍlibevent,ÓÉÓÚ°²×°memcacheÐèÒªlibeventÖ§³Ö,ËùÒÔÐèÒªÏÈ°²×°libevent memcached¹Ù·½ ......

PHPÖеÄÃüÃû¹æÔò

ÀàµÄÃüÃû
¡¡¡¡ ÔÚΪÀࣨclass £©ÃüÃûÇ°Ê×ÏÈÒªÖªµÀËüÊÇʲô¡£Èç¹ûͨ¹ýÀàÃûµÄÌṩµÄÏßË÷£¬»¹ÊÇÏë²»ÆðÕâ¸öÀàÊÇʲôµÄ»°£¬ÄÇô¾Í˵Ã÷Éè¼Æ´æÔÚÎÊÌâ¡£
¡¡¡¡³¬¹ýÈý¸ö´Ê×é³ÉµÄ»ìºÏÃûÊÇÈÝÒ×Ôì³Éϵͳ¸÷¸öʵÌå¼äµÄ»ìÏý£¬³¢ÊÔʹÓã¨CRC Se- ssion card)¿´¿´¸ÃÃüÃûËù¶ÔÓ¦µÄʵÌåÊÇ·ñÓÐ×ÅÄÇô¶àµÄ¹¦Óá£
¡¡¡¡¶ÔÓÚÅÉÉúÀàµÄÃüÃûÓ¦¸Ã±ÜÃâ´ ......

PHP³ÌÐòÔ±¼°ÍøÕ¾Éè¼ÆʦְҵҪÇó

ÕÐƸְλ£º
Ò»¡¢PHP³ÌÐòÔ±
ְλҪÇó£º
1. ¾«Í¨PHP/MySQL¿ª·¢ºÍLinuxϵͳ£¬Ê¹ÓÃPHPµÄ¿ª·¢¾­Ñé±ØÐë²»ÉÙÓÚÈýÄ꣬¾«Í¨smarty Ä£°å£¬ÓÐǧÍò¼¶´óÐÍWEBÏîÄ¿¾­ÑéÕßÓÅÏÈ£»
2. ¾ßÓÐÁ¼ºÃµÄC/C++»ù´¡£¬ÓµÓÐÁ¼ºÃµÄ´úÂëÏ°¹ß£¬ÒªÇó½á¹¹ÇåÎú£¬ÃüÃû¹æ·¶£¬Âß¼­ÐÔÇ¿£¬´úÂëÈßÓàÂʵͣ»
3. ÊìÁ·ÕÆÎÕHTML¡¢JavaScript¡¢CSS¡¢XML¡¢AJAXµÈ֪ʶ£¬ ......

php strip_tagsº¯Êý

strip_tags
È¥µô HTML ¼° PHP µÄ±ê¼Ç¡£
Óï·¨: string strip_tags(string str);
·µ»ØÖµ: ×Ö·û´®
±¾º¯Êý¿ÉÈ¥µô×Ö·û´®Öаüº¬µÄÈκΠHTML ¼° PHP µÄ±ê¼Ç×Ö·û´®¡£ÈôÊÇ×Ö·û´®µÄ HTML ¼° PHP ±êÇ©Ô­À´¾ÍÓÐ´í£¬ÀýÈçÉÙÁË´óÓڵķûºÅ£¬ÔòÒ²»á·µ»Ø´íÎ󡣶ø±¾º¯ÊýºÍ fgetss() ÓÐ×ÅÏàͬµÄ¹¦ÄÜ
//×¢
strip Ó¢[strip]
vi. 1. Íѹâ ......

PHPÑéÖ¤ÍøÒ³ÊÇ·ñ¿ÉÓõÄһЩ·½·¨

×î½ü¹«Ë¾ÓиöÍøÕ¾ÒªÏÈÅжϷþÎñÆ÷ÉϵÄÍøÒ³ÊÇ·ñ¿ÉÓã¬È»ºóÔÚ°ÑÖµÌá½»µ½Õâ¸öÍøÒ³ÉÏ¡£Ê¹ÓÃphpÀ´¼ì²âÍøÒ³ÊÇ·ñ¿ÉÓã¬Ã»Ôõô½Ó´¥¹ýphp£¬¸ãÁËÁ½Ì죬»ù±¾ÉÏÊÇ¿ÉÒÔ¼ì²âÁË¡£ÏÖ°Ñ´úÂëÌùÉÏ£º
 <?php 
  //
  $url = "http://blog.csdn.net/xuezhongsong/archive/2009/09/17/4561488.aspx";  
  $ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ