PHP calls out of JSON after the number of words want to hide 50 to seek the help of master

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