Question
OT: interesting problem and a solution
I have a site that I want to bring under template control.
Some pages will
be HTML pages. Some pages will be PHP pages. I want to use INCLUDES with
the site (it's a rebuild of an existing site).
If I use HTML SSI, that works fine, but only in pages with *.html
extensions. If I use PHP SSI, those don't work at all in *.html pages.
What to do?
I use *BOTH*, like this -
<!--#include virtual="/includes/whatever.html" -->
<!--<?php include="/includes/whatever.html" ?>-->
HTML files recognize the HTML SSI and ignore the PHP one since it's in an
HTML comment. PHP pages ignore the HTML SSI, and execute the PHP one,
ignoring the fact that it's in an HTML comment.
This way, I can have both includes within the non-editable regions and I'm
laughing....
Do you see any downside to doing it this way?
--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================
be HTML pages. Some pages will be PHP pages. I want to use INCLUDES with
the site (it's a rebuild of an existing site).
If I use HTML SSI, that works fine, but only in pages with *.html
extensions. If I use PHP SSI, those don't work at all in *.html pages.
What to do?
I use *BOTH*, like this -
<!--#include virtual="/includes/whatever.html" -->
<!--<?php include="/includes/whatever.html" ?>-->
HTML files recognize the HTML SSI and ignore the PHP one since it's in an
HTML comment. PHP pages ignore the HTML SSI, and execute the PHP one,
ignoring the fact that it's in an HTML comment.
This way, I can have both includes within the non-editable regions and I'm
laughing....
Do you see any downside to doing it this way?
--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================
