Wojtek
August 10th, 2002, 21:27
I'd like to do somehting like this:
a CGI or PHP script that fetches a page lets say www.host.com/page.html takes the html source, takes all the a href's (ex: www.host.com/page2.html) and changes it to www.myhost.com/myphp.php?www.host.com/page2.html so the page2 is reloaded into the script again so it takes all hrefs from page2 and son on.
I'd need this so I can put a top header/footer for each page, but to make it look like the page is hosted on my site. and if the user clicks a link inside the page, it would reload with the page he requested along with the header and footer.
Thanks Alot
a CGI or PHP script that fetches a page lets say www.host.com/page.html takes the html source, takes all the a href's (ex: www.host.com/page2.html) and changes it to www.myhost.com/myphp.php?www.host.com/page2.html so the page2 is reloaded into the script again so it takes all hrefs from page2 and son on.
I'd need this so I can put a top header/footer for each page, but to make it look like the page is hosted on my site. and if the user clicks a link inside the page, it would reload with the page he requested along with the header and footer.
Thanks Alot