You are here: Re: Frames alternative? « HTML « IT news, forums, messages
Re: Frames alternative?

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация