PHP calls out of the JSON after the number to hide out of 50 to seek the help of master!
This post was last edited by Cnshoufu on 2014-10-24 23:36:52
qianming.php Original References
$code = code value from the front end of $_get[' code '];//
$appid = "10";
$appsecret = "Zhang Xiao Hua";
$url = "http://123456.com/actForm.ashx?action=addorder&gameid=65&num= $appid &realname=520520&[ email protected]&searchpass= $appsecret ";
$result = Https_request ($url);
$json = Json_decode ($result, true);
$id = Explode (' _ ', $json [' msg ']);
echo $id [1];
function Https_request ($url, $data = null) {
$curl = Curl_init ();
curl_setopt ($curl, Curlopt_url, $url);
curl_setopt ($curl, Curlopt_ssl_verifypeer, FALSE);
curl_setopt ($curl, Curlopt_ssl_verifyhost, FALSE);
if (!empty ($data)) {
curl_setopt ($curl, Curlopt_post, 1);
curl_setopt ($curl, Curlopt_postfields, $data);
}
curl_setopt ($curl, Curlopt_returntransfer, 1);
$output = curl_exec ($curl);
Curl_close ($curl);
return $output;
}
?>
<title>Submit Online</title>
Jump page Please later ...
Open the Web page displayed as Reference
14102423250754238
Submit Online
Jump page Please later ...
Want to putThe front 14102423250754238 is removed directly below the orderid=14102423250754238 here to show what needs to be done! Please help me.
------to solve the idea----------------------
...
$id = Explode (' _ ', $json [' msg ']);
//echo $id [1];
function Https_request ($url, $data = null) {
...
------to solve the idea----------------------
Yesterday used my code, you do not test, Echo also do not comment, really lazy
------to solve the idea----------------------
Reference:
yesterday with my code, you do not test, Echo also do not comment, really lazy
Yesterday's post question resolved, the Lord is still not satisfied with the end. This is what the Lord is doing to the people who are giving help.
The novice is already this, and can expect others to help, I want to say the two words, "hehe"