Rtx 实时通知实现
生活随笔
收集整理的這篇文章主要介紹了
Rtx 实时通知实现
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
RTX 實時通知實現
//require_once('./lib/nusoap.php'); //$client = new soapclient('http://web11.99mr.com:8012/rtx.php?wsdl'); // //$message = array('send_to' => '1993,1826', 'title' => '1111', 'body' => '2222'); //$result = $client->call('sendmessage', array('message' => $message)); //print_r($result); //exit;function sendrtx($url){$ch = curl_init($url);curl_setopt($ch, CURLOPT_HEADER, 0);curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);$contents = curl_exec($ch);curl_close($ch);return $contents; }$send_to = '1993,1826';//逗號分隔表示多個rtx帳號 $title = iconv('utf-8','gb2312','大放送'); //發送的標題 $body = iconv('utf-8','gb2312',"[莆田|http://www.putianb2b.com]臥槽臥槽臥槽槽;真真假假");//發送的內容$message = sendrtx("http://web11.99mr.com:8012/rtx.php?send_to=$send_to&title=$title&body=$body");if($message=='yes') {echo '發送成功'; }else{echo '發送失敗'; }
轉載于:https://www.cnblogs.com/yifenghong/archive/2012/05/15/2501811.html
總結
以上是生活随笔為你收集整理的Rtx 实时通知实现的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 一套cms内容网站发布系统
- 下一篇: 唐骏:幸福与财富无关