TreeNet Webmaster <we*******@tree net.co.nzwrote:
>I was hoping to use a menu bar with frames to avoid having to repeat the
menu code for each page. It seems that I may be able to include common menu
bar code on each page using PHP's 'include' directive. That's easy!
That's set me in the right direction.
Hmm, if its just for the menu. I would make the menu a php page and use
an OBJECT/IFRAME tag to include it.
Whilst using either element if you _really_ need to embed a whole other
page might be ok (I'd question if there is ever a good reason to want
that, and another solution should be considered first), using either to
include a non complete page is very much the wrong thing to do.
When using an <objectelemen t you have no way to get the links to open
in the "parent" window. Using <iframemeans that you lose some
validation features due to the fact that <iframeis only permitted in
Transitional, plus <iframehas client support issues and its also not
uncommon for them to be switched off in the browser by a user or
filtered out by ad stripping utilities.
>PHP pages are not usually cachable
by proxy servers or spider bots.
Cacheability should indeed not simply be sacrificed, but PHP generated
pages can be made cacheable if the author has control over the web
server configuration.
--
Spartanicus