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

PHPÄ£ÄâʵÏÖJavaµÄendsWith

      JavaÖеÄstartsWithºÍendsWith·½·¨£¬ÔÚfilterµÄ¹¦ÄÜʵÏÖÖкܷ½±ã£¬PHP¿ÉÒÔÓÃstrncmp()
ʵÏÖstartsWith£¬µ«ÊÇÎÞ·¨ÊµÏÖendsWith£¬ÓÐЩÈË»áÓÃÕýÔòÀ´ÊµÏÖ£¬µ«´ó¶àÊýÈ˶¼²»Ï²»¶ÕýÔò±í´ïʽµÄ²Ù×÷¡£
      ÕâÀïÎÒͨ¹ýÒ»¸ö½Ðsubstr_compareµÄ·½·¨ÊµÏÖ(ͬʱËûÒ²ÄÜʵÏÖstartsWith)¡£
¶¨ÒåºÍÓ÷¨
substr_compare() º¯Êý´ÓÖ¸¶¨µÄ¿ªÊ¼³¤¶È±È½ÏÁ½¸ö×Ö·û´®¡£
¸Ãº¯Êý·µ»Ø£º
0 - Èç¹ûµÈÁ½×Ö·û´®Ïà
<0 - Èç¹û string1 £¨´Ó¿ªÊ¼Î»Öã©Ð¡ÓÚ string2
>0 - Èç¹û string1 £¨´Ó¿ªÊ¼Î»Öã©´óÓÚ string2
Óï·¨
substr_compare(string1,string2,startpos,length,case)
²ÎÊý
ÃèÊö

string1
±ØÐè¡£¹æ¶¨Òª±È½ÏµÄµÚÒ»¸ö×Ö·û´®¡£
string2
±ØÐè¡£¹æ¶¨Òª±È½ÏµÄµÚ¶þ¸ö×Ö·û´®¡£
startpos
¿ÉÑ¡¡£¹æ¶¨ÔÚ string1
Öеĺδ¦¿ªÊ¼±È½Ï¡£
length
¿ÉÑ¡¡£¹æ¶¨ÔÚ string1
ÖвÎÓë±È½ÏµÄ×Ö·ûÊý¡£
case
¿ÉÑ¡¡£¹æ¶¨ÊÇ·ñÖ¸¶¨´óСд±È½Ï¡£Ä¬ÈÏÊÇ FALSE £¨¶Ô´óСдÃô¸Ð£©¡£
ʹÓÃsubstr_compareÖØдºóµÄstartsWithºÍendsWithÈçÏÂ
function startsWith(){
       $string1 = "XXXX";
       $string2 = "XXXX";
       if(strlen($string1)<strlen($string2)){  //ÈôµÚÒ»¸ö×Ö·û´®³¤¶ÈСÓÚµÚ¶þ¸öµÄʱºò£¬±ØÐëÖ¸¶¨·µ»Øfalse£¬
            return false;                                   //·ñÔòsubstr_compareÓöµ½ÕâÖÖÇé¿ö»á·µ»Ø0£¨¼´Ï൱£¬ÓëÊÂʵ²»·ûºÏ£©
        }else{
            return !substr_compare($string1,$string2,0,strlen($string2));//µ±µÚÒ»¸ö³¤¶È´óÓÚµÚ¶þ¸öʱ²Å¿ªÊ¼ÅжÏ
        }
}
function endsWith(){
       $string1 = "XXXX";
       $string2 = "XXXX";
       if(strlen($string1


Ïà¹ØÎĵµ£º

java»ñµÃÍøÒ³ÄÚÈÝ

Íøַץȡ Java API ¸ÅÊö
 
http://code.google.com/intl/zh-CN/appengine/docs/java/urlfetch/usingjavanet.html
App Engine Ó¦ÓóÌÐò¿ÉÒÔÓëÆäËûÓ¦ÓóÌÐò½øÐÐͨÐÅ»òͨ¹ýץȡÍøÖ··ÃÎÊÍøÂçÉϵÄÆäËû×ÊÔ´¡£Ó¦ÓóÌÐò¿ÉÒÔʹÓÃÍøַץȡ·þÎñÀ´·¢³ö HTTP ºÍ HTTPS ÇëÇó²¢½ÓÊÕÏìÓ¦¡£³öÓÚЧÂʺÍÀ©Õ¹ÐÔ¿¼ÂÇ£¬Íøַץȡ·þÎñʹÓà G ......

javaÒì³£´¦Àí£¨1£©

Äã¾õµÃ×Ô¼ºÊÇÒ»¸öJavaר¼ÒÂð£¿ÊÇ·ñ¿Ï¶¨×Ô¼ºÒѾ­È«ÃæÕÆÎÕÁËJavaµÄÒì³£´¦Àí»úÖÆ£¿ÔÚÏÂÃæÕâ¶Î´úÂëÖУ¬ÄãÄܹ»Ñ¸ËÙÕÒ³öÒì³£´¦ÀíµÄÁù¸öÎÊÌâÂð£¿
OutputStreamWriter out = ...
java.sql.Connection conn = ...
try { // ¢É
Statement stat = conn.createStatement();
ResultSet rs = stat.executeQuery(
"selec ......

java¶ÔString×Ö·û´®¶ÔÏóµÄ´´½¨ÒÔ¼°¹ÜÀí

(Ô­´´)ÉîÈëÑо¿java¶ÔString×Ö·û´®¶ÔÏóµÄ´´½¨ÒÔ¼°¹ÜÀí
(2008-9-27 bbh)
ÐÂÊÖ³õѧ,²»¶ÔµÄµØ·½´ó¼Ò¶à¶àÖ¸½Ì~
¾­³£¿´µ½ºÜ¶àÈËÌÖÂÛjavaÖйØÓÚStringµÄÎÊÌâ,ÎÒÒ²¾ÍÓеãÐËȤÁË,¼øÓÚÍøÉϺܶàÈËдµÄ¶¼²î±ðºÜ´ó,
ͬÑùµÄÎÊÌⶼÊDz»Í¬µÄ˵·¨,ÎÒºÜÃÔºý,»¨ÁËÒ»ÍíÉ϶ÁÁËJava Virtual Machine SpecificationºÍ
The Java Language Spec ......

´«ÖDz¥¿ÍJAVAÅàѵstruts2ѧϰ±Ê¼Ç

´«ÖDz¥¿ÍJAVAÅàѵstruts2ѧϰ±Ê¼Ç Ç°Á½ÌìÎÒÏÝÈëÁËstruts2Ô­ÀíµÄÄàÌ·Öв»¿É×Ô°ÇÁË£¬ÕâÖָоõÏ൱²»´í£¬µ«ÊÇÎÒ¸öÈË»¹ÊǸоõ»ù´¡Èç¹û²»ÊǺܺõĻ°£¬Ç§Íò²»ÒªÏÝÈ룬ÒòΪÕâÑùµÄ»°£¬ºÜÓпÉÄÜÈÃÒ»¸öÈ˱äµÃûÓÐÐÅÐÄ£¬»¹ºÃÎÒÊÇÒ»¸öÐÄÀí»¹´í²»´íµÄÈË£¬ËùÒԺܿì¾Í×ßÁ˳öÀ´¡£ËùÒÔ£¬ÎҵĸöÈ˸оõ»¹ÊÇ£¬ÏÈÕÆÎÕ»ù´¡£¬È»ºóÔÚÈ¥Àí½âÔ­Àí°É£¬Ò ......

RedhatÏ Apache, php, mysqlµÄĬÈÏ°²×°Â·¾¶

apache:
Èç¹û²ÉÓÃRPM°ü°²×°£¬°²×°Â·¾¶Ó¦ÔÚ /etc/httpdĿ¼ÏÂ
apacheÅäÖÃÎļþ:/etc/httpd/conf/httpd.conf
ApacheÄ£¿é·¾¶£º/usr/sbin/apachectl
webĿ¼:/var/www/html
Èç¹û²ÉÓÃÔ´´úÂë°²×°£¬Ò»°ãĬÈÏ°²×°ÔÚ/usr/local/apache2Ŀ¼ÏÂ
php:
Èç¹û²ÉÓÃRPM°ü°²×°£¬°²×°Â·¾¶Ó¦ÔÚ /etc/Ŀ¼ÏÂ
phpµÄÅäÖÃÎļþ:/etc/php.ini ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ