PHP calls out the numbers in json format and wants to hide 50 copies. could you please help me!

Source: Internet
Author: User
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"

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.