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

PHPµÄÒ»¸ö¹ýÂËÃô¸Ð´Ê»òÔà»°µÄ·½·¨

Ö÷ҪʹÓÃÁË  int substr_count ( string haystack, string needle [, int offset [, int length]] )  Õâ¸ö·½·¨,Õâ¸ö·½·¨±éÀú´ý²âµÄ×Ö·û´®$strÖÐÓÐûÓÐ$allergicWordÊý×éÖÐËù°üº¬µÄÃô¸Ð´Ê£º
      $allergicWord = array('Ôà»°','ÂîÈË»°');
      $str = 'Õâ¾ä»°Àï°üº¬ÁËÔà»°ºÍÂîÈË»°';
      for ($i=0;$i<count($allergicWord);$i++){
       $content = substr_count($str, $allergicWord[$i]);
       if($content>0){
        $info = $content;
        break;
       }
      }
     if($info>0){
      //ÓÐÎ¥·¨×Ö·û
      return TRUE;
     }else{
      //ûÓÐÎ¥·¨×Ö·û
      return FALSE;
     }
Èç¹ûÐèÒª½«³öÏÖµÄÃô¸Ð´ÊÌæ»»£¬±ÈÈçÌæ»»###»òÕß***¿ÉÒÔ½áºÏsubstr_replace ( mixed string, string replacement, int start [, int length] )·½·¨Ê¹ÓÃ


Ïà¹ØÎĵµ£º

PHPä¯ÀÀ±íÖеļǼ

Òªä¯ÀÀ±íÖеļǼÐèÒªÖ´ÐÐÒÔϼ¸²½²Ù×÷£º
(1) Ö´ÐÐÒÔÏÂSQLÓï¾ä£º
select field1,field2,field3,...from $table_name
ÆäÖÐfield1,field2,field3±íʾµÄÊÇÐèÒª´Ó±íÖвéѯµÄ×Ö¶ÎÃû³Æ£º$table_nameΪ±íµÄÃû³Æ¡£
(2)ʹÓÃPHP MSSQLÀà¿âÖеÄmssql_fetch_array()º¯Êý¶ÁȡִÐÐSQLÓï¾äËù·µ»ØµÄ½á¹û¼¯¡£¸Ãº¯ÊýµÄÓï·¨¸ñʽÈçÏ´úÂ룺 ......

¹ØÓÚJQuery ²å¼þGridµÄѧϰʹÓÃ±Ê¼Ç (PHP°æ)

¹ØÓÚJQuery ²å¼þGridµÄѧϰʹÓÃ±Ê¼Ç (PHP°æ)
     ÔÚ¿ª·¢WEBÓ¦ÓóÌÐòʱ£¬ÎÒÃǻᾭ³£ºÍÊý¾Ý´ò½»µÀ£¬¶øÊý¾Ýͨ³£¶¼ÊÇͨ¹ý±í¸ñµÄÐÎʽÀ´½øÐÐÏÔʾ¡£¶øÔÚjQueryÖУ¬ÓÐÒ»¸öGrid²å¼þ£¬
ËüÔÚ´¦ÀíÊý¾Ýʱ¹¦ÄÜÒì³£µÄÇ¿´ó£¬Äܼ¸ºõÂú×ãÎÒÃǵÄËùÓÐÐèÇ󡣿ÉνÎ޵С£×ÁÄ¥ÁËGridºÃ¼¸Ì죬ÖÕÓÚÔÚÍøÉÏÕÒµ½ÁËÒ»¸ö·Ç³£°ôµÄÑ§Ï ......

linuxÏÂapache+php°²×°³£¼ûÎÊÌâ

1¡¢Apache
¡¡¡¡ÔÚÈçÏÂÒ³ÃæÏÂÔØapacheµÄfor Linux µÄÔ´Âë°ü
¡¡¡¡http://www.apache.org/dist/httpd/;
¡¡¡¡´æÖÁ/home/xxĿ¼£¬xxÊÇ×Ô½¨Îļþ¼Ð£¬ÎÒ½¨ÁËÒ»¸öwjµÄÎļþ¼Ð¡£
¡¡¡¡ÃüÁîÁÐ±í£º
¡¡¡¡
cd /home/wj
¡¡¡¡tar -zxvf httpd-2.0.54.tar.gz
¡¡¡¡mv httpd-2.0.54 apache
¡¡¡¡cd apache
¡¡¡¡./configure --prefix=/u ......

PHPʵÏÖ»ñÈ¡°Ù¶Ètop50µÄËÑË÷ÅÅÐйؼü×Ö

ºÜ¶àÕ¾³¤Ì¸SEOÓÅ»¯Ê±¶Ô°Ù¶ÈÈÈÃŹؼü´ÊºÜ¸ÐÐËȤ£¬ºÏÀíÀûÓÃÈÈÃŹؼü´Ê½øÐÐÓÅ»¯¶ÔÍøÕ¾ÅÅÃûÊÇÓаïÖúµÄ£¬µ±È»ÎÒ˵µÄÊǺÏÀíÀûÓ㬿ɲ»ÄÜÀÄÓðٶȹؼü´Ê£¬ÆðÂëijЩ¹Ø¼ü´Ê¶ÔÓ¦µÄÄÚÈÝÓ¦¸ÃÊÇÄãµÄÍøÕ¾ÉÏ¿ÉÒÔÌṩµÄ¡£³¶Ô¶ÁË¡£¡£
ÎÒ½ñÌìҪ˵µÄÊÇÈçºÎÓÃPHP×Ô¶¯»ñÈ¡°Ù¶ÈTOP50ÈÈÃŹؼü×Ö¡£ÖÁÓÚÈçºÎÀûÓÃÕâЩ¹Ø¼ü×Ö¾ÍÊÇÄãµÄÊÂÁË¡£
Ê×ÏÈ£¬Õ ......

PHP³£ÓõÄһЩÕýÔò±í´ïʽ

Æ¥ÅäÖÐÎÄ×Ö·ûµÄÕýÔò±í´ïʽ£º [\u4e00-\u9fa5]
ÆÀ×¢£ºÆ¥ÅäÖÐÎÄ»¹ÕæÊǸöÍ·ÌÛµÄÊ£¬ÓÐÁËÕâ¸ö±í´ïʽ¾ÍºÃ°ìÁË
Æ¥ÅäË«×Ö½Ú×Ö·û(°üÀ¨ºº×ÖÔÚÄÚ)£º[^\x00-\xff]
ÆÀ×¢£º¿ÉÒÔÓÃÀ´¼ÆËã×Ö·û´®µÄ³¤¶È£¨Ò»¸öË«×Ö½Ú×Ö·û³¤¶È¼Æ2£¬ASCII×Ö·û¼Æ1£©
Æ¥Åä¿Õ°×ÐеÄÕýÔò±í´ïʽ£º\n\s*\r
ÆÀ×¢£º¿ÉÒÔÓÃÀ´É¾³ý¿Õ°×ÐÐ
Æ¥ÅäHTML±ê¼ÇµÄÕýÔò±í´ïʽ£º ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ