In php, enter an address to display the content of another website, and the address is also the address I just entered, online and other php environments
I want to enter www.xy.com to directly display the content of the website of the other party (www.a.com/key/a). the displayed address is www.xy.com I just entered.
How can this be achieved? do you need to modify the preparation file,
Thanks.
Reply to discussion (solution)
Use the framework.
To rewrite a URL, you must change the server configuration file.
Use html iframe tags
Http://www.w3school.com.cn/tags/tag_iframe.asp
------------------------------------------------------ AutoCSDN signature file ------------------------------------------------------
Code Farm ?? A farm where coders sow codes and graze ideas!
Use curl functions
This is not a matter of PHP, but of server software.
Apache can be rewritten using rewrite.
Either use the iframe of html
On the html page of www.xy.com, write: