當前位置:編程學習大全網 - 網站源碼 - Php全源代碼交友類網站源代碼

Php全源代碼交友類網站源代碼

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

  • 上一篇:linux popen system 超時問題
  • 下一篇:通達信五行指示器源代碼
  • copyright 2024編程學習大全網