Adobe Dreamweaver Forums



Last 10 THreads :         Is there an easier or neater way to code this... (Last Post : NedWebs - Replies : 1 - Views : 2 )           »          Letters are cutoff (Last Post : NedWebs - Replies : 1 - Views : 2 )           »          IllegalRequest error with loadclip (Last Post : eps67 - Replies : 0 - Views : 1 )           »          IllegalRequest error with loadclip (Last Post : eps67 - Replies : 0 - Views : 1 )           »          compilation error (Last Post : Murray *ACE* - Replies : 2 - Views : 3 )           »          Give a checkbox a variable name. (Last Post : NedWebs - Replies : 2 - Views : 3 )           »          A New Joke Website (Last Post : nightwolf666 - Replies : 6 - Views : 7 )           »          Flash Player 10, problem with emdended fonts andattachment (Last Post : plasmaflex - Replies : 2 - Views : 3 )           »          DWCS4 Effects>Appear on DIV background image? (Last Post : Murray *ACE* - Replies : 4 - Views : 5 )           »          flash and wide-gamut monitors (Last Post : tonton66 - Replies : 1 - Views : 3 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Dreamweaver: Main > Dreamweaver General
 
Tags: ,



Reply
  #1 (permalink)  
Old 08-19-2008, 06:40 PM
Ian Edwards
 
Posts: n/a
Diggs:
Default php includes

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



Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-19-2008, 07:01 PM
Murray *ACE*
 
Posts: n/a
Diggs:
Default Re: php includes

> 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


Reply With Quote
  #3 (permalink)  
Old 08-19-2008, 07:12 PM
Malcolm _
 
Posts: n/a
Diggs:
Default Re: php includes

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~*...
~*
Reply With Quote


  #4 (permalink)  
Old 08-19-2008, 07:42 PM
Joe Makowiec
 
Posts: n/a
Diggs:
Default Re: php includes

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
Reply With Quote
  #5 (permalink)  
Old 08-19-2008, 09:17 PM
Murray *ACE*
 
Posts: n/a
Diggs:
Default Re: php includes

> 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


Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 01:46 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Inactive Reminders By Mished.co.uk