e-mail:threesky@gmail.com'; $api = "本站接口:
http://api.heqee.com/fetion/?username=飞信手机号码&passowrd=飞信手机密码&to=接收人号码&message=短信内容
或者
http://api.heqee.com/fetion/?u=飞信手机号码&p=飞信手机密码&t=接收人号码&m=短信内容"; if ($demo != "") { if (!in_array($demo, array( "send", "code", "help", "api" ))) { error("参数错误!"); } switch ($demo) { case "code": exit(highlight_file("demo.php", true)); break; case "help": exit($help); break; case "api": exit($api); break; } } function getval($key) { if (!isset($_post[$key]) || $_post[$key] == null || $_post[$key] == '') { return ($_get[$key] != '' && isset($_get[$key])) ? trim($_get[$key]) : null; } else { return ($_post[$key] != '' && isset($_post[$key])) ? trim($_post[$key]) : null; } } function error($msg) { exit("heqee info: " . $msg); } function gbktoutf8($value) { return iconv("gbk", "utf-8", $value); } $send = array(); $send['username'] = getval('username') != null ? getval('username') : getval('u'); $send['password'] = getval('password') != null ? getval('password') : getval('p'); $send['to'] = getval('to') != null ? getval('to') : getval('t'); $send['message'] = gbktoutf8(getval('message') != null ? getval('message') : getval('m')); $send['message_len'] = strlen($send['message']); switch ($send) { case $send['username'] == null: error('请输入登陆手机的号码.'); break; case $send['password'] == null: error('请输入登陆手机的密码.'); break; case $send['to'] == null: error('请输入接收手机的号码.'); break; case $send['message'] == null: error('请输入短信内容.'); break; case $send['message_len'] > 360: error('消息内容不能超过180个字符.'); break; } $fetion = new fetion($send['username'], $send['password']); $fetion->send($send['to'], $send['message']); /* 所需php扩展:curl, simplexml */ include "libs/fetion.class.php"; //设置飞信帐号密码 $username = "15900000000"; $password = "password"; //接收号码,多号码用","分隔(159..,159..) $sendto = "15900000000,13400000000"; //消息内容 $message = "i am from heqee.com"; //开源代码phprm.com //实例化(必须) $fetion = new fetion($username, $password); //发送 返回布尔 $sms = $fetion->send($sendto, $message); if ($sms) { echo "ok"; }
永久链接:
转载随意!带上文章地址吧。
本软件完全免费,无任何bug。用户可放心使用,网关需单独注册,请联系软件作者。1、关于接口设置:721K 卡易智能点卡接口,易宝支付网银接口。2、关于账户功能:商户信息管理、玩家留言信箱、网关下载、资金管理。3、关于游戏管理:分区管理、添加分区、分组管理、比例模板、补发管理、获取代码。4、关于订单管理:订单查询、渠道管理、结算统计。5、关于数据统计:玩家排名、分区排名、渠道统计。6、程序是 .NE










