|
Posted by UKuser on 08/23/07 13:10
On 23 Aug, 13:23, Martin Jay <mar...@spam-free.org.uk> wrote:
> On Thu, 23 Aug 2007 04:58:18 -0700, UKuser <spiderc...@yahoo.co.uk>
> wrote:
>
> >On 23 Aug, 12:47, Bernhard Sturm <sturmnixs...@datacomm.ch> wrote:
> >> UKuser wrote:
> >> forget the concept 'frames' use includes instead. For php use this in
> >> order to load an external file into your main file:
>
> >> require_once("myexternalfile.php");
>
> >> HTH
> >> bernhard
> >If I do that all the links from the external site point to my website,
> >i.e.
>
> >mysite-root/a-page-I-don't-have.html
>
> >I tried this, but the images and links wouldnt work.
>
> Have you considered parsing the HTML to correct these problems?
>
> <?php
>
> $content = file_get_contents("http://$site"); // where site is awww.anyname.com
>
> /* a bit of code here to correct links to pages and images */
>
> echo $content;
> ?>
> --
> Martin Jay
I did play with that, but the other problem was duplicating the HTML
start/body/head tags which needed to be stripped out as well. My
problem is I have a directory where I want to open up websites within
it, but display our header on top. One of our listees has cookies
running on their front page, and either iframes or regular frames
didnt like having them.
If theres an alternative solution, I'm open to ideas.
A
Navigation:
[Reply to this message]
|