麻辣堂|资源主站|开发论坛|在线手册
首页 Apache Linux Java MySQL 注册帮助 
PHP项目开发组是PHP开发资源网于2007组年建成立的项目开发团队,目前核心开发成员有27人, 项目协作成员8名.下设7个开发组,主要承接大/中型网站项目开发任务。

    由于开发任务较多,人员比较紧张,现面向社会招聘全职或者兼职开发人员,不管你是在校大学生,还是全职开发人员,以及SOHO都可以联系本站,我们可以长期合作,并为您带来丰厚的报酬。
  您现在的位置:PHP开发资源网 > 麻辣堂 > 详细资料
待解决
汗死了,写了个简单的类,居然出错......帮忙看看
悬赏分:20 - 2007年08月13日

Parse error: parse error, unexpected T_LNUMBER, expecting T_STRING in d:\apache\htdocs\sms\include\sms_class.php on line 3

[php]
<?php

class SmsClass{

var $remoteInterFace;

//MT接口参数变量
var $cpId;
var $mobile;
var $moblieType;
var $serviceCode;
var $feeFlag;
var $mtFlag;
var $feeMobile;
var $feeMobileType;
var $linkId;
var $msg;
var $valiDateCode;
var $url;


//构造函数
function SmsClass(){
$this->remoteInterFace = 'http://127.0.0.1/MT.aspx?';
$this->cpId = 'CPID';
$this->mobile = 'Mobile';
$this->mobileType = 'MobileType';
$this->serviceCode = 'ServiceCode';
$this->feeFlag = 'FeeFlag';
$this->mtFlag = 'MTFlag';
$this->feeMobile = 'FeeMobile';
$this->feeMobileType = 'FeeMobileType';
$this->linkId = 'LinkID';
$this->msg = 'Msg';
$this->valiDateCode = 'ValidateCode';
$this->url = 'Url';
}

//提交数据给MT接口
function SendMsg($httpGetUrl){
$returnString = file($httpGetUrl);
$returnString = implode('', $returnString);
return $returnString;
}

//组装提交参数---暂时无用,想好再说
function HttpUrlMake(){
$httpGetUrl = this->remoteInterFace.'';
return $httpGetUrl;
}


//分析返回字符串
function AnalyzReturn($strings, $pattern){
$tag = preg_match($pattern, $strings, $matches);
$matches[0] = ($tag == 0) ? '无匹配字符串' : $matches[0];
return $matches[0];

}

//测试函数
function Test(){
$$cpId = '11asf';
return $$cpId;
}

}
?>
[/php]

提问者:Dalamar   08-13 19:07
答复
路过。。。顺便帮顶:)
回答者:玉米づ冰冻可乐 - 瓦岗村民 8-22 09:10
我也来回答:
不管你有没有帮助我们,瓦岗寨8万村民将感谢你。。。。。

为防止灌水,您需要计算一道数学题: 答案:
19 + 15 = ? 请将计算结果填在上面

 
[]
©2007 PhpRes.COM