$ QQ = " 100000 ";//qq號碼
$ pwd = " 123456 ";//密碼
$ ch = curl _ init();
Curl _ setopt ($ ch,curlopt _ URL," http://address ");
curl_setopt($ch,CURLOPT_FOLLOWLOCATION,1);//這壹行用來設置curl是否跟隨頭發送的位置。
curl_setopt($ch,CURLOPT_POST,1);
//curl_setopt($ch," Connection "," Keep-Alive ");
curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch,CURLOPT_POSTFIELDS," qq= "。$qq。“& amppwd= "。$pwd。“& ampfrom where = register ");
$ return = curl _ exec($ ch);
curl _ close($ ch);
echo strstr($return," postfield ")?“登錄失敗”:“登錄成功”;
?& gt
1,需要curl模塊的支持,2,登錄後,好友會看到妳在線。