On the problem of using JSON to implement the mechanism of the value transfer between Java and PHP

Source: Internet
Author: User
On the use of JSON to implement the value-to-PHP system between Java and the problem!
I now have a question like this:

First of all, I can implement the following step, that is, the Java program to my PHP page request, I use Json_encode to return the data to the Java program side

And now the following step I do not know how to achieve, do not know the mechanism in the inside how to achieve?!!

Is the Java program to my PHP page to send JSON packets, then I should use PHP what function or a custom method to get the Java program sent over the JSON packet? Is it okay to use request?

As long as I know how to get it, then I know how to explain its JSON packet ~ ~

Ask the Master ~ ~ Grateful to come ~

Small I score is not many, this can give as much as possible ~ ~

Share to:


------Solution--------------------
Java you do not directly post get past it? what function is used?
------Solution--------------------
Ajax.
------Solution--------------------
You java post come over PHP without any data that is not post success, follow the data to see where the error.

Ajax is also used to post or get.
------Solution--------------------
Reference:
I now have a problem:

First of all, I can implement the following step, that is, the Java program to my PHP page request, I use Json_encode to return the data to the Java program side

And now the following step I do not know how to achieve, do not know the mechanism in the inside how to achieve?!!

Is the Java program to my PHP page to send JSON packets, then I should use PHP what function or a custom method to get the Java program sent over the JSON packet? With re ...


PHP Json_encode and Json_decode and Java is not interoperable, it is recommended to use a string to pass the way, so that both PHP and Java can be handled correctly
  • 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.