This API has not been tested on this site. After the webmaster tests, it will be updated immediately. Stay tuned. Thank you for your support!
This is mainly implemented using curl. You need to enable php's support for curl.
<? Php
Header ("Content-Type: text/html; charset = UTF-8 ″);
If (isset ($ _ GET ['number']) {
$ Url = 'HTTP: // webservice.webxml.com.cn/webservices/mobilecodews.asmx/getmobilecodeinfo ';
$ Number = $ _ GET ['number'];
$ Ch = curl_init ();
Curl_setopt ($ ch, CURLOPT_URL, $ url );
Curl_setopt ($ ch, CURLOPT_POST, true );
Curl_setopt ($ ch, CURLOPT_POSTFIELDS, "mobileCode = {$ number} & userId = ");
Curl_setopt ($ ch, CURLOPT_RETURNTRANSFER, true );
$ Data = curl_exec ($ ch );
Curl_close ($ ch );
$ Data = simplexml_load_string ($ data );
If (strpos ($ data, 'HTTP ://')){
Echo 'mobile Phone Number Format error! ';
} Else {
Echo $ data;
}
}
?>
<Form action = "mobile. php" method = "get">
Mobile phone number: <input type = "text" name = "number"/> <input type = "submit" value = "submit"/>
</Form>
Author: ahe