php短信接口 调用webservers的
程序员文章站
2022-05-24 09:47:29
...
简单的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 ''; } }