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

php³£ÓõÄÕýÔò¹ýÂË


$str=preg_replace("/\s+/", " ", $str); //¹ýÂ˶àÓà»Ø³µ   
$str=preg_replace("/<[ ]+/si","<",$str); //¹ýÂË<__("<"ºÅºóÃæ´ø¿Õ¸ñ)   
  
$str=preg_replace("/<\!--.*?-->/si","",$str); //×¢ÊÍ   
$str=preg_replace("/<(\!.*?)>/si","",$str); //¹ýÂËDOCTYPE   
$str=preg_replace("/<(\/?html.*?)>/si","",$str); //¹ýÂËhtml±êÇ©   
$str=preg_replace("/<(\/?head.*?)>/si","",$str); //¹ýÂËhead±êÇ©   
$str=preg_replace("/<(\/?meta.*?)>/si","",$str); //¹ýÂËmeta±êÇ©   
$str=preg_replace("/<(\/?body.*?)>/si","",$str); //¹ýÂËbody±êÇ©   
$str=preg_replace("/<(\/?link.*?)>/si","",$str); //¹ýÂËlink±êÇ©   
$str=preg_replace("/<(\/?form.*?)>/si","",$str); //¹ýÂËform±êÇ©   
$str=preg_replace("/cookie/si","COOKIE",$str); //¹ýÂËCOOKIE±êÇ©   
  
$str=preg_replace("/<(applet.*?)>(.*?)<(\/applet.*?)>/si","",$str); //¹ýÂËapplet±êÇ©   
$str=preg_replace("/<(\/?applet.*?)>/si","",$str); //¹ýÂËapplet±êÇ©   
  
$str=preg_replace("/<(style.*?)>(.*?)<(\/style.*?)>/si","",$str); //¹ýÂËstyle±êÇ©   
$str=preg_replace("/<(\/?style.*?)>/si","",$str); //¹ýÂËstyle±êÇ©   
  
$str=preg_replace("/<(title.*?)>(.*?)<(\/title.*?)>/si","",$str); //¹ýÂËtitle±êÇ©   
$str=preg_replace("/<(\/?title.*?)>/si","",$str); //¹ýÂËtitle±êÇ©   
  
$str=preg_replace("/<(object.*?)>(.*?)<(\/object.*?)>/si","",$str); //¹ýÂËobject±êÇ©   
$str=preg_replace("/<(\/?objec.*?)>/si","",$str); //¹ýÂËobject±êÇ©   
  
$str=preg_replace("/<(noframes.*?)>(.*?)<(\/noframes.*?)>/si","",$str); //¹ýÂËnoframes±êÇ©   
$str=preg_replace("/<(\/?noframes.*?)>/si","",$str); //¹ýÂËnoframes±êÇ©   


Ïà¹ØÎĵµ£º

[ת£ÝÉîÈëÀí½âPHPÖ®require/include˳Ðò


×÷Õß: laruence(http://www.laruence.com
)
±¾ÎĵØÖ·: http://www.laruence.com/2010/05/04/1450.html
×ªÔØÇë×¢Ã÷³ö´¦
ÔÚ´óÐ͵ÄWebÏîÄ¿ÖÐ, include_pathÊÇÒ»¸öÄ£¿é»¯Éè¼ÆµÄ¸ù±¾Öеĸù±¾(µ±È»,ÏÖÔÚÒ²Óкܶà»ùÓÚautoloadµÄÉè¼Æ,
Õâ¸ö²»Ó°Ïì±¾ÎĵÄ̽ÌÖ), µ«ÊÇÕýÊÇÒòΪinclude_path, ¾­³£»áÈÃÎÒÃÇÓöµ½Ò»Ð©ÒòΪûÓÐÕÒµ½Õ ......

php º¯Êý

htmlspecialchars()    
º¯Êý°ÑһЩԤ¶¨ÒåµÄ×Ö·ûת»»Îª HTML ʵÌå¡£
      ENT_COMPAT - ĬÈÏ¡£½ö±àÂëË«ÒýºÅ¡£
          eg:" £¨Ë«ÒýºÅ£© ³ÉΪ &quot;
implode()    
º¯Êý°Ñ
Êý×éÔªËØ×éºÏΪһ¸ö×Ö ......

ÊÖ¶¯ÅäÖÃnginx+php cgi+zend+mysql

±¾ÎÄÊʺÏCentOS¡£Ò»²½Ò»²½À´£¬²»Òª´í¡£
ÏÈÏÂÔØ¹¤¾ßssh shell£¬¸öÈ˸оõÕâ¸ö±È½ÏºÃÓã¬ÍƼö¸ø´ó¼Ò
http://docs.isvps.net/soft/SSHSecureShellClient-3.2.9.zip
È»ºóÊÇһЩ±ØÒªµÄÈí¼þ°ü
nginxÔ´Âë°ü: http://www.nginx.org/download/nginx-0.7.65.tar.gz
phpÔ´Âë°ü: http://cn.php.net/distributions/php-5.2.11.tar.gz ......

301ÖØ¶¨ÏòÉèÖü°³ÌÐò´úÂëʵÏÖÈ«¼¯(ASP|.NET|PHP|JSP)

Ê×ÏÈÉêÃ÷£ºÕâ¸öÊÇÎÒ×ªÔØµÄ£¬ÖÂÁ¦ÓÚΪÏñÎÒÒ»ÑùµÄÐÂÊÖÌṩ°ïÖú£¡
1¡¢IISÏÂ301ÉèÖà InternetÐÅÏ¢·þÎñ¹ÜÀíÆ÷ -> ÐéÄâĿ¼ -> ÖØ¶¨Ïòµ½URL£¬ÊäÈëÐèҪתÏòµÄÄ¿±êURL£¬²¢Ñ¡Ôñ“×ÊÔ´µÄÓÀ¾ÃÖØ¶¨Ïò”¡£
2¡¢ASPϵÄ301תÏò´úÂë
<%@ Language=VBScript %>
<%
Response.Status=”301 Moved Permanent ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ