You are here: Re: including html « PHP Programming Language « IT news, forums, messages
Re: including html

Posted by mtuller on 06/21/07 16:29

On Jun 21, 10:56 am, Michael Fesser <neti...@gmx.de> wrote:
> .oO(mtuller)
>
> >I have recently started coding at a new position where I have a
> >designer that has templates setup. She has different html files that
> >do different things. Set the doctype, stylesheet, etc. These were
> >created for server side includes, and works great for html pages, butI
> >want to include these html files into all of my php pages, and am not
> >sure the best way to go about it.
>
> Why not simply include them?
>
> include 'head.html';
> <?php
> doSomething();
> ?>
> include 'foot.html';
>
> >I usually create functions for this, but then the designer has to
> >change the code in the html and the php. Also, in the html where there
> >is a " I have to change it to \" if I use echo to print it out.
>
> You can use single-quotes as well, usually there's no need for escaping.
>
> Micha

I didn't realize it was that easy. Thanks.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация