How to show the external web page content in the iframe?
i am working on php site. i want to show t开发者_如何学Che web page content of external site in my site. Is there any solution to show only content of external site web page in my site.
Your solution will be appreciated. Thanks in advance.
There's no need for jQuery, CSS even PHP if the site isn't preventing itself from being iframed.
iframe simply works like this:
<iframe src="http://google.com" ...></iframe>
If the site is preventing being iframed, you may want to use file_get_contents, then display the data retrieved in a DIV or other non-iframe element.
精彩评论