![]() |
![]() |
||||||
|
|||||||
| Tags: includes, php |
![]() |
|
|||
|
Hi
getting into php and amongst the reading I did it was suggested that all the head section and header logo etc should be added to an include file as should any common footer, menu etc. I see the benefit of a menu as an include and a footer - allowing the copyright to be generated by php but is there any reason to do or not to do this? thanks Ian |
| Sponsored Links |
|
|||
|
> I see the benefit of a menu as an include and a footer - allowing the
> copyright to be generated by php but is there any reason to do or not to > do this? There is no reason not to use includes for all moderately changeable content on your page. -- Murray --- ICQ 71997575 Adobe Community Expert (If you *MUST* email me, don't LAUGH when you do so!) ================== http://www.projectseven.com/go - DW FAQs, Tutorials & Resources http://www.dwfaq.com - DW FAQs, Tutorials & Resources ================== "Ian Edwards" <i.edwards@nospamedwards-micros.co.uk> wrote in message news:g8f0b0$s1s$1@forums.macromedia.com... > Hi > > getting into php and amongst the reading I did it was suggested that all > the head section and header logo etc should be added to an include file as > should any common footer, menu etc. > > I see the benefit of a menu as an include and a footer - allowing the > copyright to be generated by php but is there any reason to do or not to > do this? > > thanks > > Ian |
|
|||
|
On Tue, 19 Aug 2008 18:36:21 +0100, "Ian Edwards"
<i.edwards@nospamedwards-micros.co.uk> wrote: >Hi > >getting into php and amongst the reading I did it was suggested that all the >head section and header logo etc should be added to an include file as >should any common footer, menu etc. > >I see the benefit of a menu as an include and a footer - allowing the >copyright to be generated by php but is there any reason to do or not to do >this? > >thanks > >Ian I started doing web sites 10 years ago !!!, and it was only on a very amateur basis - I joined this forum many years ago an saw al this talk of include files, and resisted for quite a long time, thinking it would be difficult. Similarly I say the talk of php, and again was slow to adapt. But then I bought a few books and realised my mistake, and started to use php / includes. I rebuilt my web sites totally to use php & php includes and found things so much easier - especially maintaining and updating them. my few pence anyway -- ~Malcolm~*... ~* |
|
|||
|
On 19 Aug 2008 in macromedia.dreamweaver, Ian Edwards wrote:
> getting into php and amongst the reading I did it was suggested that > all the head section and header logo etc should be added to an > include file as should any common footer, menu etc. > > I see the benefit of a menu as an include and a footer - allowing > the copyright to be generated by php but is there any reason to do > or not to do this? As far as I've been able to tell, there's no downside; the upside is that it makes changing and updating your site substantially easier. Boss wants the image in the header changed? Upload one file. Boss wants the whole layout of the header changed? Upload one file. Boss wants the whole darn site changed? Upload two or three files. It's so much easier than trying to run down the files which have been changed by a template. The break point between using a template and using includes is not a hard and fast target, but seems to be in the neighborhood of 20-30 files. -- Joe Makowiec http://makowiec.net/ Email: http://makowiec.net/contact.php |
|
|||
|
> The break point between using a template and using includes is not a hard
> and fast target, but seems to be in the neighborhood of 20-30 files. Of course, includes and templates are not mutually exclusive.... I use them both all the time. -- Murray --- ICQ 71997575 Adobe Community Expert (If you *MUST* email me, don't LAUGH when you do so!) ================== http://www.projectseven.com/go - DW FAQs, Tutorials & Resources http://www.dwfaq.com - DW FAQs, Tutorials & Resources ================== "Joe Makowiec" <makowiec@invalid.invalid> wrote in message news:Xns9AFF9103C321DmakowiecatnycapdotrE@216.104. 212.96... > On 19 Aug 2008 in macromedia.dreamweaver, Ian Edwards wrote: > >> getting into php and amongst the reading I did it was suggested that >> all the head section and header logo etc should be added to an >> include file as should any common footer, menu etc. >> >> I see the benefit of a menu as an include and a footer - allowing >> the copyright to be generated by php but is there any reason to do >> or not to do this? > > As far as I've been able to tell, there's no downside; the upside is that > it makes changing and updating your site substantially easier. Boss > wants the image in the header changed? Upload one file. Boss wants the > whole layout of the header changed? Upload one file. Boss wants the > whole darn site changed? Upload two or three files. It's so much easier > than trying to run down the files which have been changed by a template. > > The break point between using a template and using includes is not a hard > and fast target, but seems to be in the neighborhood of 20-30 files. > > -- > Joe Makowiec > http://makowiec.net/ > Email: http://makowiec.net/contact.php |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
- Contact Us
-|-
Adobe Dreamweaver Forums -|-
Archive -|-
Top -|-Rules/Disclaimer-|-Help/Support-|-Advertise