Posted by Henk Verhoeven on 05/30/06 21:56
Des wrote:
> Need help with frameset issues. I a developing a website for a church
> but have been told NO FRAMESETS. This is because they don't work with
> text based browsers. I have never seen a with text based browser. Can I
> get one? What the want to do is to include a html file down the side as
> a menu and another across the top. How can this be done outside a
> frameset. Any pointers at documents please. And one at a text based
> browser maybe.
>
> Desmond.
>
Simple: edit each HTML file you want to include, cut off the header up
to and including the <BODY> tag and cut off the tail from and including
</BODY> till the end of the file, then save it. Finally make a .php
script and from there use the include function of php to include the files.
More complicated: write some php function that opens a file, scans the
file and automatically prints the part between <BODY> and </BODY>. Use
require_once to include the script with the function into the script
that needs to do the including. Then call the function where you want
the inclusion to happen.
Greetings,
Henk,
www.phpPeanuts.org.
[Back to original message]
|