How does the PHP file display the XML-style file and how is it done?

Source: Internet
Author: User
How does the PHP file display XML-style files, and how is it done??
First of all, not outside the chain.
Where to use the API, there is an example, http://tuan.cctcct.com/interface/xml/team_list.asp
It feels strange, how does his ASP show up as XML? How can PHP do this?
There are many lists in this file, take one of them: http://tuan.cctcct.com/interface/xml/team_detail.asp?team_id=1562
Next to the ID can be generated directly, do not need to generate an XML file for each, so much more convenient.
Thank you, sir.
------to solve the idea----------------------

Header (' Content-type:text/xml ');
Header (' Charset=utf-8 ');


Then echo out the 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.