|
Posted by Martin Jay on 08/23/07 12:23
On Thu, 23 Aug 2007 04:58:18 -0700, UKuser <spidercc21@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 a
www.anyname.com
/* a bit of code here to correct links to pages and images */
echo $content;
?>
--
Martin Jay
Navigation:
[Reply to this message]
|