How this site invokes the dynamic content of another site

Source: Internet
Author: User
How does this website invoke the dynamic content of another website ~
The same space is equipped with two programs, is a different domain name, how can be on another site to invoke the content of this member display AH ~ ~

Share to:


------Solution--------------------
If these programs provide APIs, then the best way to do this is to call them by API, which is also the safest

If not, you can simulate access to get the data

Also, these programs are yours, then the database is yours, you can directly access the database Ah!
------Solution--------------------
Post past yes. This is the same as the Web interface.
------Solution--------------------
You have a database, if you can access the database remotely, then directly access the database is good

Or curl to get it.
------Solution--------------------
If you do not directly access the database, it is troublesome, which involves data synchronization, synchronization login registration, member data synchronization, data synchronization to write a set of API program. The API is mainly implemented by socket communication, and PHP simplifies socket communication by using curl and fsocket.
------Solution--------------------
Writing WebService is not the case.
------Solution--------------------
1) IFRAME
2) 3) PHP Remote download access

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