iframe / file_get_contents
Posted: Wed Jan 26, 2011 10:18 am
I'm trying to configure a system like so:
client requests external page from my site -> my site requests page from the site ->returns the external page to the user
I'm using file_get_contents to do this.
The only problem is, if they click a link, it brings them to the page relative to MY site, not the requested site. IE, if they click a link to a youtube vid which usually reads 'youtube.com/12412412' it brings them to 'mywebsite.com/youtube.com/1214141'.
I thought that perhaps using an Iframe was the way to go, but do Iframes work through the server or just request the page from the client side?
Either way, I'd like a way to at least make pages' links work.
client requests external page from my site -> my site requests page from the site ->returns the external page to the user
I'm using file_get_contents to do this.
The only problem is, if they click a link, it brings them to the page relative to MY site, not the requested site. IE, if they click a link to a youtube vid which usually reads 'youtube.com/12412412' it brings them to 'mywebsite.com/youtube.com/1214141'.
I thought that perhaps using an Iframe was the way to go, but do Iframes work through the server or just request the page from the client side?
Either way, I'd like a way to at least make pages' links work.