PHP calls out the numbers in json format and wants to hide 50 copies. could you please help me! Original qianming. php
$ Code = $ _ GET ['code']; // The code value sent from the front end
$ Appid = "10 ";
$ Appsecret = "Zhang Xiaohua ";
$ Url = "http://123456.com/actForm.ashx? Action = addorder & gameid = 65 & num = $ appid & realname = 520520 & UserEmail = xiaomeng@qq.com & 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;
}
?>
Online Submission
Redirecting to the page... please wait ......
Script location. href = 'http: // 123456.com/dx.php? Orderid = 'Script
When you open the webpage, it is displayed
14102423250754238
Online Submission
Redirecting to the page... please wait ......
Script location. href = 'http: // 123456.com/dx.php? Orderid = 14102423250754238 'script
You wantRemove the above 14102423250754238 directly in the following orderid = 14102423250754238 here to show how to do it! Please help me
Reply to discussion (solution)
...
$ Id = explode ('_', $ json ['MSG ']);
// Echo $ id [1];
Function https_request ($ url, $ data = null ){
...
I used my code yesterday. you didn't test it, and echo didn't comment it. it's really lazy.
I used my code yesterday. you didn't test it, and echo didn't comment it. it's really lazy.
Yesterday's post ?? Solution? ,? Master? No? Meaning? Post .? ? Yu? Assisted? Master is ??? Waiting.
New users already have ??? ,? What do you expect? Persons? Help, I think? ? Word, "haha"