Page 1 of 1

change instances of domains

Posted: Mon Dec 19, 2005 12:50 pm
by prejudged_fire
Ok im not intirely sure if Im in the right place or not. What I want to do is make a website that displays the content of a webpage the user requests inside my webpage. viewtopic.php?t=42036&postdays=0&postorder=asc&start=15 go to that topic to see what im talking about. I was told to go here to find out how to change the instances of http://theirdomain.com to http://mydomain.com?request=http://theirdomain.com

I've gotten half way through. I have managed to display the content of the website the user inputs, however if the user clicks on a link of that webpage he/she leaves my website and goes to the other domain. How do I keep all of the content from a specified user chosen website on MY domain even when the user clicks on a link? I know there are several ways of doing this.. I need the easiest and simpilist.

Posted: Mon Dec 19, 2005 12:53 pm
by hawleyjr
You can't.

If you could everyone would go to http://www.hawleyjr.com?=id=www.ebay.com

and send me money :)

Posted: Mon Dec 19, 2005 1:22 pm
by John Cartwright
He is referring to using cURL to capture the sites content and convert the links so he can navigate the pages without leaving his site.

Posted: Mon Dec 19, 2005 1:39 pm
by feyd
of which, there is no real "easy" way to do it.. and no 100% guaranteed way either, as links stored in javascript can easily create a problem.. you also have to be concious of how the links are encoded.. some may be full url, some only literal path, some relative.. each has to be parsed and "fixed" to the new url. Look for a thread created by Heavy a while ago where I responded with a code viewing script.. it has a lot of what you'll need built-in..

Posted: Mon Dec 19, 2005 1:42 pm
by John Cartwright
Havn't we all missed feyd 8)

Posted: Mon Dec 19, 2005 1:43 pm
by hawleyjr
Jcart wrote:Havn't we all missed feyd 8)
LOL, yeah I'm actually getting work done today :) :) Cheers Feyd.