【发布时间】:2013-04-07 14:25:38
【问题描述】:
在确认我们的手机号码中发布短信警报后,我正在尝试使用 php 编码注册我们的产品 ....在使用 way2 短信移动网站..似乎发生了一些错误 ....
消息已发送到您的电子邮件地址正在登录... 注意:未定义的偏移量:第 126 行 C:\wamp\www\html\class.sms.php 中的 1 发送短信... 注意:未定义的偏移量:第 147 行 C:\wamp\www\html\class.sms.php 中的 1 遇到错误:
class.sms.php :
preg_match($pattern,$out,$matches);
$id=trim($matches[1]); // 126 line
$this->data['id']=$id;
}
private function send_160by2($number,$msg)
{
$msg=urlencode($msg);
$id=$this->data['id'];
$out1=$this->curl->post("http://m.160by2.com/...Compose.asp?l=1","txt_mobileno=$number&txt_msg=$msg&cmdSend=Send+SMS&TID=&T_MsgId=&Msg=$id");
//echo $out1;
$pattern = '/\<table.+?\>(.+)\<\/table/s';
preg_match($pattern, $out1, $matches);
$out=strip_tags(@$matches[1]);
if(count($matches)<1)
{
$pattern="/\<div.+?background:.+?yellow.+?\>(.+?)\<\/div\>/s";
preg_match($pattern,$out1,$matches);
$out=strip_tags($matches[1]); // 147 line
}
【问题讨论】: