Home  >  Article  >  php教程  >  php短信接口 调用webservers的

php短信接口 调用webservers的

PHP中文网
PHP中文网Original
2016-05-25 17:12:231120browse


简单的php调用webservers的接口

soap_defencoding = 'utf-8';
$soap->decode_utf8 = false;
$result = $soap ->call("SendNote",array("handtels" => $handtel,"_content"=>$sendcontent, "userName"=> $username , "password"=>$userpwd , "cid"=>$comid, "_sendtime"=>"" , "_smsnumber"=>$smsnumber ));
if ($soap->fault) {
echo 'Fault';
print_r($result);
echo '';
} else {
// Check for errors
$err = $soap->getError();
if ($err) {
  // Display the error
  echo 'Error' . $err . '';
} else {

  echo 'Result';
  print_r($result);
  echo '';
}
}

                   

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:ddos PHP版Next article:php+txt淘宝客超精简版