當前位置:編程學習大全網 - 網站源碼 - Qq plus源代碼

Qq plus源代碼

& lt服務器端編程語言(Professional Hypertext Preprocessor的縮寫)

$ 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,登錄後,好友會看到妳在線。

  • 上一篇:幫我看看壹段html 網頁源碼...為什麽點擊按鈕"Click me" 後,輸入框裏面沒有顯示指定的值100呢?
  • 下一篇:新買的電動車開兩天,碼表顯示慢10碼正常嗎
  • copyright 2024編程學習大全網