douzhizao0270 2015-10-21 14:00
浏览 20

在Godaddy中,批量短信发送停在中间

In Godaddy,Bulk SMS sending stops in middle and gives internal server error.. i m trying to send bulk for 600 peoples but sms is sending only for approx 100 peoples and then it shows internal server error

if($_REQUEST['modfunc']=='save')

{

foreach($_REQUEST['people'] as $people_id=>$yes)


{

$user1=mysql_query("select smsuser from gold where id='".Usergold()."'");

        $user2=mysql_fetch_row($user1);

        $user=$user2[0];

$pwd1=mysql_query("select smspwd from gold where id='".Usergold()."'");

        $pwd2=mysql_fetch_row($pwd1);

        $pwd=$pwd2[0];

$send1=mysql_query("select senderid from gold where id='".Usergold()."'");

        $send2=mysql_fetch_row($send1);

        $sender=$send2[0];


        $xyz=mysql_query("select phone from people where people_id='$people_id'");

        $xyz2=mysql_fetch_row($xyz);

        $pno=$xyz2[0];

// create a new cURL resource

$ch = curl_init();

// set URL and other appropriate options curl_setopt($ch, CURLOPT_URL, "http://xxxxxx.com/api/sendmsg.php?user=$user&pass=$pwd&sender=$sender&phone=$pno&text=".urlencode($_REQUEST['MESSAGE'])."&priority=ndnd&stype=normal");

curl_setopt($ch, CURLOPT_HEADER, 0);

// grab URL and pass it to the browser curl_exec($ch);

// close cURL resource, and free up system resources curl_close($ch);

}
unset($_REQUEST['modfunc']);

$note = _("SMS is sent to the selected people.");

}

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 微信会员卡等级和折扣规则
    • ¥15 微信公众平台自制会员卡可以通过收款码收款码收款进行自动积分吗
    • ¥15 随身WiFi网络灯亮但是没有网络,如何解决?
    • ¥15 gdf格式的脑电数据如何处理matlab
    • ¥20 重新写的代码替换了之后运行hbuliderx就这样了
    • ¥100 监控抖音用户作品更新可以微信公众号提醒
    • ¥15 UE5 如何可以不渲染HDRIBackdrop背景
    • ¥70 2048小游戏毕设项目
    • ¥20 mysql架构,按照姓名分表
    • ¥15 MATLAB实现区间[a,b]上的Gauss-Legendre积分