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¼Ç¼ÿ´Î¶¼»áɾ³ýÁË£¬³É¹¦¡£
Ïà¹ØÎĵµ£º
memcache¸öÈËÀí½âÖ÷ÒªÊÇÓÃÀ´¹ÜÀíÄÚ´æµÄ,phpºÍmemcache½áºÏ¾Í¿ÉÒÔʹphp°ÉһЩÊý¾Ý±£´æÔÚmemcache¹ÜÀíµÄÄÚ´æÀï,·½±ã¹ÜÀí,Ò²¿ì,»¹Ö§³Ö¶ą̀·þÎñÆ÷¹²ÏíÊý¾Ý,·Ï»°²»¶à˵. ·ÖΪlinuxºÍwindows 1)linuxºÍÀàUnix¿ÉÒÔ´ÓÒÔϵØÖ·ÏÂÔØmemcachedºÍlibevent,ÓÉÓÚ°²×°memcacheÐèÒªlibeventÖ§³Ö,ËùÒÔÐèÒªÏÈ°²×°libevent memcached¹Ù·½ ......
ÀàµÄÃüÃû
¡¡¡¡ ÔÚΪÀࣨclass £©ÃüÃûÇ°Ê×ÏÈÒªÖªµÀËüÊÇʲô¡£Èç¹ûͨ¹ýÀàÃûµÄÌṩµÄÏßË÷£¬»¹ÊÇÏë²»ÆðÕâ¸öÀàÊÇʲôµÄ»°£¬ÄÇô¾Í˵Ã÷Éè¼Æ´æÔÚÎÊÌâ¡£
¡¡¡¡³¬¹ýÈý¸ö´Ê×é³ÉµÄ»ìºÏÃûÊÇÈÝÒ×Ôì³Éϵͳ¸÷¸öʵÌå¼äµÄ»ìÏý£¬³¢ÊÔʹÓã¨CRC Se- ssion card)¿´¿´¸ÃÃüÃûËù¶ÔÓ¦µÄʵÌåÊÇ·ñÓÐ×ÅÄÇô¶àµÄ¹¦Óá£
¡¡¡¡¶ÔÓÚÅÉÉúÀàµÄÃüÃûÓ¦¸Ã±ÜÃâ´ ......
ÕÐƸְλ£º
Ò»¡¢PHP³ÌÐòÔ±
ְλҪÇó£º
1. ¾«Í¨PHP/MySQL¿ª·¢ºÍLinuxϵͳ£¬Ê¹ÓÃPHPµÄ¿ª·¢¾Ñé±ØÐë²»ÉÙÓÚÈýÄ꣬¾«Í¨smarty Ä£°å£¬ÓÐǧÍò¼¶´óÐÍWEBÏîÄ¿¾ÑéÕßÓÅÏÈ£»
2. ¾ßÓÐÁ¼ºÃµÄC/C++»ù´¡£¬ÓµÓÐÁ¼ºÃµÄ´úÂëÏ°¹ß£¬ÒªÇó½á¹¹ÇåÎú£¬ÃüÃû¹æ·¶£¬Âß¼ÐÔÇ¿£¬´úÂëÈßÓàÂʵͣ»
3. ÊìÁ·ÕÆÎÕHTML¡¢JavaScript¡¢CSS¡¢XML¡¢AJAXµÈ֪ʶ£¬ ......
strip_tags
È¥µô HTML ¼° PHP µÄ±ê¼Ç¡£
Óï·¨: string strip_tags(string str);
·µ»ØÖµ: ×Ö·û´®
±¾º¯Êý¿ÉÈ¥µô×Ö·û´®Öаüº¬µÄÈκΠHTML ¼° PHP µÄ±ê¼Ç×Ö·û´®¡£ÈôÊÇ×Ö·û´®µÄ HTML ¼° PHP ±êÇ©ÔÀ´¾ÍÓÐ´í£¬ÀýÈçÉÙÁË´óÓڵķûºÅ£¬ÔòÒ²»á·µ»Ø´íÎ󡣶ø±¾º¯ÊýºÍ fgetss() ÓÐ×ÅÏàͬµÄ¹¦ÄÜ
//×¢
strip Ó¢[strip]
vi. 1. Íѹâ ......
×î½ü¹«Ë¾ÓиöÍøÕ¾ÒªÏÈÅжϷþÎñÆ÷ÉϵÄÍøÒ³ÊÇ·ñ¿ÉÓã¬È»ºóÔÚ°ÑÖµÌá½»µ½Õâ¸öÍøÒ³ÉÏ¡£Ê¹ÓÃphpÀ´¼ì²âÍøÒ³ÊÇ·ñ¿ÉÓã¬Ã»Ôõô½Ó´¥¹ýphp£¬¸ãÁËÁ½Ì죬»ù±¾ÉÏÊÇ¿ÉÒÔ¼ì²âÁË¡£ÏÖ°Ñ´úÂëÌùÉÏ£º
<?php
//
$url = "http://blog.csdn.net/xuezhongsong/archive/2009/09/17/4561488.aspx";
$ ......