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

时间:2015-10-21 14:00:34

标签: php

在Godaddy,批量短信发送停在中间,并给内部服务器错误..我试图发送600人的批量,但短信只发送大约100人,然后它显示内部服务器错误

如果($ _ REQUEST [' modfunc'] =='保存&#39)

{

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


{

$ user1 = mysql_query("从gold选择smsuser,其中id ='" .Usergold()。"'");

        $user2=mysql_fetch_row($user1);

        $user=$user2[0];

$ pwd1 = mysql_query("从黄金中选择smspwd,其中id ='" .Usergold()。"'");

        $pwd2=mysql_fetch_row($pwd1);

        $pwd=$pwd2[0];

$ send1 = mysql_query("从gold选择senderid,其中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];

//创建一个新的cURL资源

$ ch = curl_init();

//设置网址和其他适当的选项 curl_setopt($ ch,CURLOPT_URL," http://xxxxxx.com/api/sendmsg.php?user= $ user& pass = $ pwd& sender = $ sender& phone = $ pno& text =" .urlencode($ _ REQUEST [' MESSAGE'。])"&安培;优先级= ndnd&安培; S型=正常&#34);

curl_setopt($ ch,CURLOPT_HEADER,0);

//抓取URL并将其传递给浏览器 curl_exec($ CH);

//关闭cURL资源,释放系统资源 curl_close($ CH);

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

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

}

0 个答案:

没有答案