»ð³µÍ·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
$filename
=
"
D:
\\
296.mid
"
;
$file
=
fopen
(
$filename
,
"
rb
"
)
;
$bin
=
fread
(
$file
,
2
)
;
//Ö»¶Á2×Ö½Ú
fclose
(
$file
)
;
$strInfo
= @
unpack
(
"
c2chars
" ......
<?php
$host="192.168.1.214";
$post=21;
$username="zwc3g";
$password="zwc3ggg";
$ftp=ftp_connect($host,$post);
ftp_login($ftp,$username,$password);
displayTheFolder($ftp,"/zhulu2");
//´òÓ¡FTPÉϵĸÃĿ¼ÏµÄËùÓÐÎļþ¡£
fu ......
ʹÓÃPHPµÄcURL¿â¿ÉÒÔ¼òµ¥ºÍÓÐЧµØÈ¥×¥ÍøÒ³¡£ÄãÖ»ÐèÒªÔËÐÐÒ»¸ö½Å±¾£¬È»ºó·ÖÎöÒ»ÏÂÄãËùץȡµÄÍøÒ³£¬È»ºó¾Í¿ÉÒÔÒÔ³ÌÐòµÄ·½Ê½µÃµ½ÄãÏëÒªµÄÊý¾Ý
ÁË¡£ÎÞÂÛÊÇÄãÏë´Ó´ÓÒ»¸öÁ´½ÓÉÏÈ¡²¿·ÖÊý¾Ý£¬»òÊÇÈ¡Ò»¸öXMLÎļþ²¢°ÑÆäµ¼ÈëÊý¾Ý¿â£¬ÄÇžÍÊǼòµ¥µÄ»ñÈ¡ÍøÒ³ÄÚÈÝ£¬cURL ÊÇÒ»¸ö¹¦ÄÜÇ¿´óµÄPHP¿â¡£
PHPÖеÄCURLº¯Êý¿â£¨Client URL Librar ......
±È½ÏPHPºÍJSPÕâÁ½¸öWeb¿ª·¢¼¼Êõ,ÔÚÄ¿Ç°µÄÇé¿öÊÇÆäʵÊDZȽÏPHPºÍJavaµÄWeb¿ª·¢.ÒÔÏÂÊÇÎҾͼ¸¸öÖ÷Òª·½Ãæ½øÐеıȽÏ:
Ò». ÓïÑԱȽÏ
PHPÊǽâÊÍÖ´ÐеķþÎñÆ÷½Å±¾ÓïÑÔ,Ê×ÏÈphpÓмòµ¥ÈÝÒ×ÉÏÊÖµÄÌصã.Óï·¨ºÍcÓïÑԱȽÏÏó,ËùÒÔѧ¹ýcÓïÑԵij ......
ºÜ¾ÃÇ°ÔÚbaidu»Ø´ðÎÊÌâʱдµÄ“ÏòÒ»¸ö×Ö·û´®Ëæ»úÌí¼ÓÎÄ×Ö”µÄ½â¾ö·½°¸£¬¿ÉÒÔÖ§³ÖÖÐÓ¢ÎÄ
<?php
/*********************************************************
describe£º×Ö·û´®´¦Àí,¿ÉÒÔ´¦ÀíÖÐÓ¢ÎÄ
function£ºÏòÒ»¸ö×Ö·û´®Ëæ»úÌí¼ÓÎÄ×Ö
author£º etongchina
email2m ......