![]() |
|
首页 │ Apache │ Linux│ Java│ MySQL│ 注册│帮助 | |||
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]

