PHP, enter an address, display the content of another website, and address if I just entered the address, online, etc.

Source: Internet
Author: User
In the PHP environment

I would like to enter www.xy.com can directly display the other side (www.a.com/key/a) of the site content, and display the address is I just entered the www.xy.com
How does this come about, the need to modify the configuration file,
Thanks.


Reply to discussion (solution)

Use the frame to

URL rewrite operation, need to change server configuration file

Using the HTML IFRAME tag
Http://www.w3school.com.cn/tags/tag_iframe.asp

------------------------------------------------------autocsdn Signature File------------------------------------------------------

Yard Farm?? Yards farming code, grazing ideas of the farm!

Using the Curl function

This is not about the PHP thing, is the server software thing.

Apache can be rewritten with rewrite.

Or just use the HTML iframe

On the www.xy.com HTML page, write:

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