PHP interface does not seem to receive the value of iOS to help solve

Source: Internet
Author: User
$str = $HTTP _raw_post_data; $js = Json_decode ($str); $phone = $js->phone;


Reply to discussion (solution)

But it doesn't seem to be worth it.

Using environment variables $HTTP _raw_post_data
Need to open the always_populate_raw_post_data switch
Ini
Always_populate_raw_post_data = On

Using environment variables $HTTP _raw_post_data
Need to open the always_populate_raw_post_data switch
Ini
Always_populate_raw_post_data = On


I am now the same configuration: But the same statement. Some can get to ... Some of them don't seem to get it.

Received, indicating no problem with the configuration
Sometimes you can't get it, that's the problem with iOS. may not be sent

See if Apache logs have a request and know if iOS has a PHP call

  • 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.