Now I'm confused. Originally i thought your question was because you may
want to use the include as a stand alone page - but now you can't. Why
have the head if it is unusable.

On Tue, 20 Jan 2009 06:24:22 +1300
Came this utterance fomulated by Steve Julian to my mailbox:

> Fortunately I didn't have to go into regular expressions. The solution
> was simple: Save the include html files as .php files and add
> conditions around the unwanted tags that always evaluate to false.
> 
> 
> <?php if (1 == 2) { ?>
> 
> <html><head><title>sample page</title></head><body>
> 
> <?php } ?>
> 
> useful page content here
> 
> <?php if (1 == 2) { ?>
> 
> </body></html>
> 
> <?php } ?>
> 
> 
> 
> 
> 2009/1/19 Steve Julian <[email protected]>
> 
> >
> > I'm working on a site that has up until now used an IFRAME for the
> > main content panel. I want to change this to include() the content
> > files instead but I don't want to have to strip the
> > "<html><head><title>sample</title></head><body>" from the top and
> > "</body></html>" from the bottom. Main reason why is we want these
> > pages to remain editable and legible by the designer in Dreamweaver.
> >
> > Is there a PHP function I can call to dynamically strip the header
> > and footer from included pages?
> >
> > Thanks in advance!
> > Steve
> >
> >
> 
> 
> -- 
> CONFIDENTIALITY: This email and any attachments may contain
> confidential, proprietary and legally privileged information, and
> unauthorised disclosure or use is prohibited. If you received this
> email in error, please notify the sender and delete any record of this
> email and any attachments from your system. The sender does not
> guarantee that this e-mail or any attachment to it is free of computer
> viruses or other conditions which may damage or interfere with data,
> hardware or software.
> 
> > 
> 


-- 
Michael

All shall be well, and all shall be well, and all manner of things shall
be well

 - Julian of Norwich 1342 - 1416

--~--~---------~--~----~------------~-------~--~----~
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[email protected]
-~----------~----~----~----~------~----~------~--~---

Reply via email to