Re: No Framesets allowed



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.
.



Relevant Pages

  • Re: how to run scripts after a page has already loaded and been sent to a users browser?
    ... > It's because PHP is a server side scripting language, ... > do stuff before you send stuff to user's web browser. ... As we've discussed on this newsgroup before, if a script starts ... that is after the last HTML is sent to a web browser. ...
    (alt.php)
  • PHP Program Randomly Stops
    ... "You can use a combination of PHP with client side code to keep the ... are pages to be processed print a client side script, e.g. JavaScript, ... This will reload until all pages are done - then ... "You are running the script from a browser. ...
    (comp.lang.php)
  • Re: Which Is The Better Approach To Working With Javascript?
    ... Java SCRIPT runs in the browser exclusively. ... PHP can also run in a browser, ...
    (comp.lang.php)
  • Re: How do we get there from here?
    ... Unlike my dislike for PHP, my dislike for SQL is based on ... >>> up with at least html and php quite mixed into each other, ... Using a PHP script to send HTML ... code to a browser in no way taints that code. ...
    (comp.databases.pick)
  • Re: how to call a function when somebody click a link?
    ... and the php script call the function only if the flag is set:) ... //we want user to go on this page and to add a flag which cause PHP to ... data's been sent to client's browser. ...
    (comp.lang.php)