$c_url="http://www.gysoft.cn/smspost_utf8/send.aspx?username=".$this->username."&password=".$this->pwd."&mobile=".$user->mobilephone."&content=".$message;
$result=$this->HttpRequest($c_url);
//运用http调用的GET方法
public function HttpRequest($url){
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_TIMEOUT, 2);
curl_setopt($ch, CURLOPT_HEADER, 0); //如果设为0,则不使用header
curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
$result = curl_exec($ch);
curl_close($ch);
return $result;
}