views:

277

answers:

4

I don't want to use frame or iframe because most websites are busting it nowdays.

what are the possible methods to do this?

The intended behaviour is as if like two browser controls loaded in a website.

A: 

you can pull it via script (PHP / curl) and display the code from there.

or you can use good old frames, although i wouldn't recommend it.

dusoft
A: 

If you do not want frames, then another option is to do it server side - make your server access the pages and combine them into one response stream.

You can also so this client side using Javascript and DHTML

mfeingold
I like this, Is there any examples out there that I can look for.
Ganesh
A: 

fopen() returns a file pointer:

$file = fopen("http://www.site.com/", "r");
Radek
But don't use it if you want to parse a lot of pages, use cURL instead.
Radek
A tut/code on using cURL: http://nadeausoftware.com/articles/2007/06/php_tip_how_get_web_page_using_curl
Radek
@Radek re curl: why do you say that? Speed? Overhead? Robustness?
Benji XVI
@Benji XVI: http://stackoverflow.com/questions/555523/filegetcontents-vs-curl-what-has-better-performance
Radek
Is the CURL equivalent to a browser control or it will just work for that one page.
Ganesh
cURL lets you work with content on remote servers including POST and GET form posting, SSL support, HTTP authentication, session and cookie handling. Check out the PHP implementation and what it can do for you.
Radek
+1  A: 

What is wrong with an iframe? What do you mean by busting (lots of websites are full of iframes)? You do not want to use iframes within an email but that is a different point!

The advantage is when people click on links within an iframe the content of the iframe gets refreshed, while if you pull the content of a webpage and then display it within a div the user will be moved on loosing the rest of the page.

Jobst
Try this website www.art.com and try to play with this site in an IFRAME and see what it is doing.
Ganesh