You are here: Re: PHP and FRAMES? « All PHP « IT news, forums, messages
Re: PHP and FRAMES?

Posted by Els on 09/26/64 11:16

Dave Moore wrote:

> "Beauregard T. Shagnasty" <a.nony.mous@example.invalid> wrote in message
> news:0snie.33132$eU.3433@twister.nyroc.rr.com...
>> Five Cats wrote:
>>> In message <p%Rhe.35104$ia6.20508@twister.nyroc.rr.com>, Beauregard
>>> T. Shagnasty <a.nony.mous@example.invalid> writes
>>>
>>>> Dave Moore wrote:
>>>>
>>>>> Hi All, I'm developing a website which incorporates a header
>>>>> section at the top, side areas and a central area. If I was
>>>>> developing the site with straight HTML, I'd simply use FRAMES.
>>>>
>>>> Google for: frames are evil
>>>>
>>>> Then, look at some simple HTML for a typical three-column page.
>>>> http://www.benmeadowcroft.com/webdev/csstemplates/3-column.html
>>>>
>>>> You can output the HTML with your PHP code, of course.
>>>
>>> He will still have the same problem even if there are no frames in
>>> the output - he wants to incorporate outside files that include
>>> <HEAD> and so on.
>>
>> All my sites incorporate "outside" files, including the <HEAD>.
>
> I'm sure that this can't be right. If you write a file out in HTML using
> PHP, then it will already have the normal HTML tags, like <HTML>, <HEAD> and
> <BODY>, etc. How can I introduce a FULL 3rd party HTML file into this page
> without first stripping this information out first?. Clearly simply
> 'include()'ing it will result in a page with 2 lots of these tags which is
> clearly not compliant.

file.php:
<?php include "bla.txt" ?>

bla.txt:
<html>
<head>
<title..... etc etc.



--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -

 

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

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