这个源码怎么用??
#TCP挂扣开始
function post_str($post_str){
$ip='121.14.102.159';
$port=14000;
$errno=0;
$errstr='';
$timeout=10;
$fp=fsockopen($ip,$port,$errno,$errstr,$timeout);
$content_length=strlen($post_str);
$post_header="POST / HTTP/1.1";
$post_header.="Content-Type: text/plain";
$post_header.="User-Agent: UNTRUSTED/1.1";
$post_header.="Host:".$ip.":".$port;
$post_header.="Content-Length:".$content_length."\r\n";
$post_header.="Connection: close\r\n\r\n" ;
$post_header.=$post_str."\r\n";
fwrite($fp,$post_header);
$str=fread($fp,1024);
return $str;
fclose($fp);
}
function tcp_gq($uin,$pw){
post_str("VER=1.4&CON=1&CMD=Login&SEQ=".rand(100,999)."&UIN=".$uin."&PS=".md5($pw)."&M5=1&LG=0&LC=2EC70D1101DB674F&GD=JTAIAHW97YPSYRPV&CKE=");
}
#TCP挂扣结束
使用:
tcp_gq(帐号,密码);
外国空间需要发短信
弱弱的问下function tcp_gq($uin,$pw) 填帐号密码得不得去掉$?
把我发那个代码新建个php文件,命名php.php,
然后再把你发那个代码新建个文本么?原谅不懂php.....