|
-
Nov 28th, 2002, 08:24 PM
#1
Thread Starter
Fanatic Member
to include or not to include
Hello all,
I'm currently using a Dreamweaver template for my site, so the header is about 50 lines, and the footer about 50 too.
I was wondering, is it better (ie, uses less bandwidth) to include the header/footer in instead of have the html code repeat each time?
I know it makes it more readable, but other than that, is there an advantage?
PHP Code:
<my header code>
...
<my php code>
...
<my footer code>
///or
include("path/to/header");
<my php code>
include("path/to/footer");
Thanks
Visit www.fragblast.com
Gaming, forums, and a online RPG/Battle system
(__Flagg) DOT NET? is this a Hindi Dating service?
-
Nov 28th, 2002, 09:16 PM
#2
Stuck in the 80s
I'd throw my vote to use include. It's just much easier on you. It doesn't use any more bandwidth, but it could slow load time down. Yet, even on dialup, it'd probably not be noticable.
I've never had a problem doing it.
-
Nov 29th, 2002, 09:04 AM
#3
Conquistador
it's just another file the server has to get
also, it means you change 1 file for changes to your header and footer, instead of many
-
Nov 29th, 2002, 09:39 AM
#4
Thread Starter
Fanatic Member
I decided not to use it, like da_silvy said, its another file the server has to process. Updating templates isn't a problem, since I won't be changing the design. Besides, Dreamweaver automatically updates all the sites's pages if you change the template
Visit www.fragblast.com
Gaming, forums, and a online RPG/Battle system
(__Flagg) DOT NET? is this a Hindi Dating service?
-
Dec 10th, 2002, 06:14 AM
#5
Lively Member
If the header and footer are the same for ever page then i would stick them in a js and include them from there.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|