Php_app (communication) interface-interface three elements ____php

Source: Internet
Author: User
Tags readable

Three key elements of app interface implementation:

1. Interface address, such as http://www.server.com/data.php

The interface address is equivalent to the request address in the B/s architecture, and the principle is similar;

2. Interface file: data.php

The interface file is used to process the logic and return the processed data;

3, interface data;

The data returned by the pretext file;

Here, the returned interface data types are probably string, HTML, XML, and JSON. And among the few data types,

The most commonly used data types are XML and JSON;

Both of these data types are completely cross-platform and cross-language, so compatibility is very good.

There is an advantage between XML and JSON.

XML is very readable;

JSON is less readable than XML, but it generates faster and travels faster than XML;;;

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.