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±êÇ©
Ïà¹ØÎĵµ£º
×÷Õß: laruence(http://www.laruence.com
)
±¾ÎĵØÖ·: http://www.laruence.com/2010/05/04/1450.html
×ªÔØÇë×¢Ã÷³ö´¦
ÔÚ´óÐ͵ÄWebÏîÄ¿ÖÐ, include_pathÊÇÒ»¸öÄ£¿é»¯Éè¼ÆµÄ¸ù±¾Öеĸù±¾(µ±È»,ÏÖÔÚÒ²Óкܶà»ùÓÚautoloadµÄÉè¼Æ,
Õâ¸ö²»Ó°Ïì±¾ÎĵÄ̽ÌÖ), µ«ÊÇÕýÊÇÒòΪinclude_path, ¾³£»áÈÃÎÒÃÇÓöµ½Ò»Ð©ÒòΪûÓÐÕÒµ½Õ ......
Ò»Ö±ÈÏΪphpÖÐ×Ö×Ö·û´®±È½ÏÖ±½ÓÓÃ==À´Åжϻ¹ÊǺܷ½±ãµÄ,µ«½ñÌìÓöµ½µÄÒ»¸öÎÊÌâ,³¹µ×ÈÃÎÒÃ÷°×ÁËʹÓÃstrcmpµÄ±ØÒªÐÔ.Õâ¸öÎÊÌâºÜ¶àÀÏÊÖ¶¼¿ÉÄÜ»áºöÂÔµÄ.
½ñÌìÔڵǼ×Ô¼º×öµÄ³ÌÐòʱ,ÔÚÊäÈëÑéÖ¤Âëºó,ÏëÖ±½Ó°´Ð¡¼üÅÌÉϻسµµÇ¼(³ÌÐò¼ì²éÁ˻سµÊ¼þ)£¬½á¹û°´»Ø³µ°´³ÉÁ˼üÅÌÉϻسµ¼üÅÔ±ßСÊýµÄÄǸö¼ü,ÑéÖ¤ÂëÀ¸¾Í¶àÊäÈëÁËÒ»¸öµã¡£ÓÉÓÚ ......
ʹÓ÷½·¨:
×Ô¶¯²ÃÇÐ:
³ÌÐò»á°´ÕÕͼƬµÄ³ß´ç´ÓÖв¿²ÃÇÐ×î´óµÄÕý·½ÐΣ¬²¢°´Ä¿±ê³ß´ç½øÐÐËõÂÔ
$t->setSrcImg("img/test.jpg");
$t->setCutType(1);//ÕâÒ»¾ä¾ÍOKÁË
$t->setDstImg("tmp/new_test.jpg");
$t-&g ......
±¾ÎÄÊʺÏ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 ......