PHP³£ÓÃÕýÔò±í´ïʽ
Æ¥ÅäÖÐÎÄ×Ö·ûµÄÕýÔò±í´ïʽ
£º [\u4e00-\u9fa5]
Æ¥ÅäË«×Ö½Ú×Ö·û(°üÀ¨ºº×ÖÔÚÄÚ)
£º ["\x00-\xff]
Ó¦Ó㺼ÆËã×Ö·û´®µÄ³¤¶È
£¨Ò»¸öË«×Ö½Ú×Ö·û³¤¶È¼Æ2£¬ASCII×Ö·û¼Æ1£©
String.prototype.len=function(){return
this.replace(["\x00-\xff]/g,"aa").length;}
Æ¥Åä¿ÕÐеÄÕýÔò±í´ïʽ
£º [\s| ]*\r
Æ¥ÅäHTML±ê¼ÇµÄÕýÔò±í´ïʽ£º /<(.*)>.*<\/>|<(.*) \/>/
Æ¥ÅäÊ×β¿Õ¸ñµÄÕýÔò±í´ïʽ
£º ("\s*)|(\s*$)
Ó¦ÓãºjavascriptÖÐûÓÐÏñvbscriptÄÇÑùµÄtrimº¯Êý£¬ÎÒÃǾͿÉÒÔÀûÓÃÕâ¸ö±í´ïʽÀ´ÊµÏÖ£¬ÈçÏ£º
String.prototype.trim = function() {
return this.replace(/("\s*)|(\s*$)/g, "");
}
ÀûÓÃÕýÔò±í´ïʽ·Ö½âºÍת»»IPµØÖ·
£º
ÏÂÃæÊÇÀûÓÃÕýÔò±í´ïʽƥÅäIPµØÖ·£¬²¢½«IPµØַת»»³É¶ÔÓ¦ÊýÖµµÄjavascript³ÌÐò£º
function IP2V(ip) {
re=/(\d+)\.(\d+)\.(\d+)\.(\d+)/g //Æ¥ÅäIPµØÖ·µÄÕýÔò±í´ïʽ
if(re.test(ip)) {
return
RegExp.*Math.pow(255,3))+RegExp.*Math.pow(255,2))+RegExp.*255+RegExp.*1
}
else {
throw new Error("Not a valid IP address!")
}
}
²»¹ýÉÏÃæµÄ³ÌÐòÈç¹û²»ÓÃÕýÔò±í´ïʽ£¬¶øÖ±½ÓÓÃsplitº¯ÊýÀ´·Ö½â¿ÉÄܸü¼òµ¥£¬³ÌÐòÈçÏ£º
var ip="10.100.20.168"
ip=ip.split(".")
alert("IPÖµÊÇ£º"+
(ip[0]*255*255*255+ip[1]*255*255+ip[2]*255+ip[3]*1))
Æ¥ÅäEmailµØÖ·µÄÕýÔò±í´ïʽ
£º \w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*
Æ¥ÅäÍøÖ·URLµÄÕýÔò±í´ïʽ
£º http://(
Ïà¹ØÎĵµ£º
wangjimima.php
<form id="form1" name="form1" method="post" action="mailto.php" onSubmit="return CheckForm()">
<input name="username" type="text" class="in" id="username" size="30" onmouseover="fEvent('mouseover',this)" onfocus="fEvent('focus',this)" onblur="fEvent('blur',this)" onmouseout ......
×î½üÒ»Ö±ÔÚÑо¿freeBSDÏÂnginx+php+mysqlµÄ°²×°£¬¿´Á˺ܶàÍøÉϵÄ×ÊÁÏÊÕ»ñ²»Ð¡£¬²»¹ý´ó²¿·Ö¶¼ÊDZàÒë°²×°£¬Ïà¶Ô³õѧÕßÀ´Ëµ±È½Ï¸´ÔÓ£¬²»ÈÝÒ×Àí½â£¬ËùÒÔÎÒÕûºÏÁËһЩports°²×°µÄ×ÊÁÏ£¬¶¼ÊǾ¹ý×Ô¼ºÑéÖ¤ºóµÄ£¬°²×°³É¹¦Ò²±È½ÏÈÝÒ×Àí½â£¬ÏÂÃæÊÇÁ½Öֳɹ¦µÄ°¸Àý£¬ÆäÖÐÓÐÒ»¸öÊÇApache´úÌænginxµÄ°²×°£¬Ï£Íû¶Ô´ó¼ÒÓÐËù°ïÖú¡£
° ......
¹ØÓÚPHPµÄǰ;£¨¶þ£© £¨À´×Ô±¾Õ¾µÄÏûÏ¢£©
3.2ÔÚWindows 95/98/NT/2000ÉÏ¿ìËÙ°²×°Apache Web·þÎñÆ÷£¨10ÃëÖÓ£©
ÔÚWindowsÉÏÔËÐÐPHP£¬ÄãÐèÒªÒ»¸öWeb·þÎñÆ÷£¬Äã¿ÉÒÔʹÓÃ΢ÈíµÄIIS£¬Ò²¿ÉÒÔʹÓÃÃâ·ÑµÄApache ¡£ÒòΪ¿ÉÒÔͨ¹ýApacheµÄ°²×°Îļþsetup.exe½øÐа²×°£¬¿ÉÒÔΪÄã½ÚÊ¡Ðí¶àʱ¼ä¡£
PHPTtriadÊÇÒ»¸ö°üÀ¨Apache¡¢PHP¡¢MySQ ......
С±à֮ǰҲÔø±¨µ¼¹ýPHP¿ª·¢ÈËÔ±ÈÝÒ׺öÂԵļ¸µã¾«»ª,³ýÁËһЩ¾«»ª¼¼Êõ·½·¨Í⣬ºÜ¶àϸ΢֮´¦Ò²ÊdzÌÐòÔ±
ÃÇÈÝÒ׺öÂԵģ¬ÏÂÃæÎÒÃÇΪÄú×ܽáÁË10¸ö¹ØÓÚPHPÄã¿ÉÄܲ»ÖªµÀµÄÊÂÇé¡£
¡¡¡¡¹ØÓÚPHP¸ü¶àÄÚÈÝ£¬»¶Ó·ÃÎÊ£ºPHP¿ª·¢»ù´¡ÈëÃÅ
¡¡¡¡1.ʹÓÃip2long() ºÍlong2ip()º¯ÊýÀ´°ÑIPµØַת»¯³ÉÕûÐÍ´æ´¢µ½Êý¾Ý¿âÀï¡£
¡¡¡¡ÕâÖÖ·½·¨°Ñ´æ´¢ ......
it is 21th of May. The Month of PHP Security
(http://www.php-security.org) is still running and we have reached a
vulnerability count of 40 vulnerabilities, which is nearly as much as we
disclosed during the whole Month of PHP Bugs in 2007. However there are
11 more days until the end of May and ......