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

»ð³µÍ·discuz6.1ÍêÃÀ²É¼¯µÄphp½Ó¿ÚÎļþ

 
»ð³µÍ·¹Ù·½ÌṩµÄdiscuz6.1µÄphp½Ó¿Ú±È½Ï´Ö²Ú£¬»ù±¾²»ÄÜÂú×ãÐèÒª£¬±¾ÈËÔڲɼ¯µÄ¹¤×÷ÖÐʹÓõIJɼ¯½Ó¿ÚÎļþÈçÏ£º
PS£º¶ÔÔ­ÎļþµÄÐ޸Ľϴó,³ÌÐòÖÐ×¢ÊÍÒѾ­ºÜÏ꾡£¬ÕâÀï¾Í²»¶à˵ÁË¡£
<?php
// header('Content-Type:text/html;charset=UTF-8');
//if(function_exists("mb_convert_encoding")){
// $tmp =  checkAndTranslate("ʹÓÃÇ°Ç뽫¸ÃÎļþÖ±½ÓÉÏ´«ÖÁÂÛ̳¸ùĿ¼", 0);
// header('Content-Type:text/html;charset=UTF-8');
// print($tmp);
//}else{
// print("NO");
//}
// exit("this.line=".__line__);
/*
ÎļþÃû£ºlocoyonline_for_discuz610.php
*ʹÓÃÇ°Ç뽫¸ÃÎļþÖ±½ÓÉÏ´«ÖÁÂÛ̳¸ùĿ¼
*±¾ÎļþΪGBK±àÂ룻
*´¦Àíºóµ¼ÈëÊý¾Ý¿âµÄ±àÂëΪ£ºutf-8£»
*ÐèÒªÌæ»»×Ö·ûʱ£¬Ðè°Ñreplace.txt¸´ÖƵ½Í¬Ä¿Â¼Ï£»
*/
//´¦ÀíÈ«¾Ö±äÁ¿
//foreach($_POST as $key => $value){
 //$$key = $value ;
 //print($key.' = '.$value.'\n');
//}
//var_dump($_POST);
//exit('end-0');
// ÐèÒª²åÈëµÄÊý¾Ý±í
// 1.cdb_threads
// 2.cdb_rewardlog // ok ÐüÉͼǼ±í
// 3.cdb_mythreads
// 4.cdb_posts
// 5.cdb_tags _update
// 6.cdb_threadtags
// 7.cdb_forums _update
// 8.cdb_members _update ok ¸ü¸ÄÐüÉͱí
//done end !
$user_list = file('./makeuser/username.txt');
// Ëæ»ú·¢ÌûµÄÓû§Ãûµ¥£¬±ØÐëÊÇÒѾ­×¢²áµÄ
// ¹ØÓÚÅúÁ¿×¢²áÓû§Ãû¿ÉÒԲο¼ Discuz 6.0+ ÅúÁ¿×¢²áÓû§Ãû
  
$user_list = array_map("curlAndCopy", $user_list);
function curlAndCopy($a){
  return trim($a);
}
$replyusers = implode("|",$user_list);
 //´¦Àí»Ø¸´µÄ¸ñʽ
 function trimAndCurl($str){
  $str = preg_replace('/\n\s{5,}/','', $str , 1);
  $str = trim($str);
  $str = checkAndTranslate($str);
  return $str;
 }
 
 function checkAndTranslate($mess, $if_replace =1, $in_char_type='GBK', $out_char_type='UTF-8'){
  //if replace ?
  if($if_replace){
   $mess = curlAndReplace($mess);
  }
  //if chinese GBK ?
&


Ïà¹ØÎĵµ£º

PHP/MYSQLʵÏÖ°´×Öĸ¼ìË÷

·½·¨Ò»£º½¨Ò»¸öÆ´Òô±í t_cosler £¬´æ·Åÿ¸ö×Öĸ¿ªÍ·µÄµÚÒ»¸öºº×ֵıàºÅºÍ×îºóÒ»¸öºº×ֵıàºÅ¡£
BatchFile code+------+--------+-------+
| f_PY | cBegin | cEnd |
+------+--------+-------+
| A | 45217 | 45252 |
| B | 45253 | 45760 |
.....
| Z | 54481 | 55289 |
+------+--------+-------+ ......

php curlµÄ¼¸¸öÀý×Ó

ʹÓÃPHPµÄcURL¿â¿ÉÒÔ¼òµ¥ºÍÓÐЧµØÈ¥×¥ÍøÒ³¡£ÄãÖ»ÐèÒªÔËÐÐÒ»¸ö½Å±¾£¬È»ºó·ÖÎöÒ»ÏÂÄãËùץȡµÄÍøÒ³£¬È»ºó¾Í¿ÉÒÔÒÔ³ÌÐòµÄ·½Ê½µÃµ½ÄãÏëÒªµÄÊý¾Ý
ÁË¡£ÎÞÂÛÊÇÄãÏë´Ó´ÓÒ»¸öÁ´½ÓÉÏÈ¡²¿·ÖÊý¾Ý£¬»òÊÇÈ¡Ò»¸öXMLÎļþ²¢°ÑÆäµ¼ÈëÊý¾Ý¿â£¬ÄÇžÍÊǼòµ¥µÄ»ñÈ¡ÍøÒ³ÄÚÈÝ£¬cURL ÊÇÒ»¸ö¹¦ÄÜÇ¿´óµÄPHP¿â¡£
PHPÖеÄCURLº¯Êý¿â£¨Client URL Librar ......

PHPѧϰ

phpÊÇÒ»ÖÖ¿ª·ÅÔ´´úÂ롢ǶÈëʽ·þÎñÆ÷¶ËµÄ½Å±¾ÓïÑÔ¡£
1¡¢PHPÒ²ÊÇǶÈëʽCGIÓïÑÔ¡£PHP4ÊDZ»·â×°ÔÚ±ê¼ÇÖеÄǶÈëʽÓïÑÔ£¬Äã¿ÉÒÔÇáÒ×µØÔÚPHPºÍHTMLÖ®¼ä½øÐÐת»»£¬¶ø²»±ØʹÓôóÁ¿´úÂëÒÔÊä³öHTML¡£Í¨ÓÃÍø¹Ø½Ó¿Ú(CGI)ÔÊÐíÓû§±àдÄܲúÉúHTMLÒÔ¼°¶¯Ì¬´¦ÀíÍøÒ³Êý¾ÝµÄ¼ÆËã»ú³ÌÐò¡£PHP¿ÉÒÔ±»¹éÀàΪCGI¡£
2¡¢Ó¦ÓÃPHPµÄÈý¸öÁìÓò£º(1)·þÎñÆ ......

PHPÄ£ÄâSMTP·¢ËÍÓʼþµÄÀà

 
PHPÄ£ÄâSMTP·¢ËÍÓʼþµÄÀà
 
<?php
/*********************************************************
 filename£ºmail.class.php
 describe£ºÓÊÏäµÄÅäÖ㬾­²âÊÔ¿ÉÒÔÊÊÓÃÓÚLinuxºÍwindows
 function£º¼ì²éÓÊÏäµÄºÏ·¨ÐÔ£¬·¢ËÍ»ù±¾µÄÓÊÏäÑéÖ¤ÐÅÏ¢
 author£º  etongchina@gmail. ......

PHPÏòÒ»¸ö×Ö·û´®Ëæ»úÌí¼ÓÎÄ×Ö

 ºÜ¾ÃÇ°ÔÚbaidu»Ø´ðÎÊÌâʱдµÄ“ÏòÒ»¸ö×Ö·û´®Ëæ»úÌí¼ÓÎÄ×Ö”µÄ½â¾ö·½°¸£¬¿ÉÒÔÖ§³ÖÖÐÓ¢ÎÄ
<?php
/*********************************************************
 describe£º×Ö·û´®´¦Àí,¿ÉÒÔ´¦ÀíÖÐÓ¢ÎÄ
 function£ºÏòÒ»¸ö×Ö·û´®Ëæ»úÌí¼ÓÎÄ×Ö
 author£º  etongchina
 email2m ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ