<?php
function send($msg,$qq,$sid="AZ2cCD9ZH30W5Em7-q1ygkU"){
file_get_contents("
http://pt.3g.qq.com/s?aid=nLogin3gqqbysid&3gqqsid=$sid");
$url="
http://q16.3g.qq.com/g/s?sid=$sid&aid=sendmsg&tfor=qq&referer=";
$post="msg=$msg&u=".$qq."&saveURL=0&do=send";
$ch=curl_init();
curl_setopt($ch,CURLOPT_POST,1);
curl_setopt($ch,CURLOPT_URL,$url);
curl_setopt($ch,CURLOPT_POSTFIELDS,$post);
#curl_setopt($ch,CURLOPT_NOBODY,1);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
curl_exec($ch);
curl_close($ch);
}
send("测试","121311497");
?>这是一个3gqq发送消息函数,奇怪,为什么运行之后会是一下子发送了两条消息给我呢?????
比如发了两个“测试”过来,
大神求解