PHPsu
MANUAL ZH  |  EN
     


Current Position :| index>Beginners> QQ linked to the website source code

QQ linked to the website source code

FROM: AUTHOR: TIME:2008-08-07 HITS:

PHP实例 挂QQ的网页源代码

<php phpsu提供的php教程
$qq = "100000"; //qq NM
$pwd = "123456"; //Password

$ch = curl_init();

curl_setopt($ch, CURLOPT_URL, "http://211.139.167.71/waptest/TWF/qqportal/rela/updateuserinfo.jsp");
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); //This trip is set to follow the curl header sent the location, important
curl_setopt($ch, CURLOPT_POST, 1);

Ituri Directory Network[www.etoow.com]
http://www.etoow.com/html/2008-05/1211943027.html
//curl_setopt($ch, "Connection", "Keep-Alive");
PHP examples QQ linked to the website source code
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch, CURLOPT_POSTFIELDS, "qq=".$qq."&pwd=".$pwd."&FromWhere=register");

$return = curl_exec($ch);

curl_close($ch); www.phpsu.com

echo strstr($return, "postfield") ? "Sign failure": "Sign successful";
?>
TITLE:QQ linked to the website source code
Previous:PHP CLI For Beginners
Next:None
Copyright 2008 The PHPsu All rights reserved. This mirror generously provided by: .Hp Inc.
Last updated: Thu Aug 7 14:10:07 GMT-8 2008