我的代码中存在问题。代码运行后,会出现此错误:
捕获致命错误:类/ stdClass的对象无法转换为/home/1234/domains/1234.com/public_html/sender.php中的字符串
代码是:
<?php
$r = array();
$num = array();
$num = split(",",$_REQUEST['num']);
$num_length = count($num);
$num_length--;
$userName="134";
$password="1234";
$domainName="1234.com";
$lineNumber="50001234";
$text=$_REQUEST['msg'];
date_default_timezone_set('Asia/Tehran');
$client= new SoapClient('http://91.98.100.94/service.asmx?WSDL');
$parameters['domain'] = $domainName;
$parameters['username'] = $userName;
$parameters['password'] = $password;
$parameters['srcNumber'] = $lineNumber;
$parameters['body'] = array($text);
$parameters['recipientnumbers'] = $_REQUEST['num'];
$r = $client->Send($parameters);
print (string) $r->SendResult;
?>