在Godaddy,批量短信发送停在中间,并给内部服务器错误..我试图发送600人的批量,但短信只发送大约100人,然后它显示内部服务器错误
如果($ _ REQUEST [ 'modfunc'] == '保存')
{
foreach($_REQUEST['people'] as $people_id=>$yes)
{
$ user1 = mysql_query(“select gold smsuser from gold where id ='” . Usergold() . “'”);
$user2=mysql_fetch_row($user1);
$user=$user2[0];
$ pwd1 = mysql_query(“select gold smspwd from gold where id ='” . Usergold() . “'”);
$pwd2=mysql_fetch_row($pwd1);
$pwd=$pwd2[0];
$ send1 = mysql_query(“select goldid 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];
//创建一个新的cURL资源
$ ch = curl_init();
//设置URL和其他适当的选项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);
//抓取URL并将其传递给浏览器curl_exec($ ch);
//关闭cURL资源,释放系统资源curl_close($ ch);
}
unset($_REQUEST['modfunc']);
$note = _("SMS is sent to the selected people.");
}