| Coding Forum Problems with your code? Let's hear about it. |
03-22-2004, 07:53 PM
|
#1 (permalink)
|
|
Inactive
Join Date: 02-07-04
Location: AZ
Posts: 698
Latest Blog: None
|
too many include files?
Has anyone every had a problem with using too many include files?
How many would be too many?
Reason I ask is because on a site I'm building I have 4 includes. Left Nav, header1, header2, and a footer.
thnx
|
|
|
03-22-2004, 08:19 PM
|
#2 (permalink)
|
|
Individualist
Join Date: 09-27-03
Location: Japan, mostly
Posts: 42,508
|
www.internet-marketing-blog.com
I have the footer inc, topnav inc, leftnav inc, ads inc. Maybe even a couple others.  :
It shouldn't be a problem.
|
|
|
03-22-2004, 09:07 PM
|
#3 (permalink)
|
|
Inactive
Join Date: 02-07-04
Location: AZ
Posts: 698
Latest Blog: None
|
thought so...thans John
|
|
|
03-22-2004, 09:14 PM
|
#4 (permalink)
|
|
Inactive
Join Date: 02-07-04
Location: AZ
Posts: 698
Latest Blog: None
|
ok that was just an unconcealed effort to gain a link to that site. jk
|
|
|
03-22-2004, 11:09 PM
|
#5 (permalink)
|
|
Inactive
Join Date: 02-29-04
Location: Indiana
Posts: 464
Latest Blog: None
|
lol. i havent run into any problems using includes.. YET
|
|
|
03-22-2004, 11:16 PM
|
#6 (permalink)
|
|
Individualist
Join Date: 09-27-03
Location: Japan, mostly
Posts: 42,508
|
Quote:
|
Originally Posted by RonHollingsworth
ok that was just an unconcealed effort to gain a link to that site. jk
|
Actually, no. I just want everybody to know how many includes files I had to make in doing that site. I think that is the most includes files I've ever used on a site.

|
|
|
03-22-2004, 11:19 PM
|
#7 (permalink)
|
|
Individualist
Join Date: 09-27-03
Location: Japan, mostly
Posts: 42,508
|
Quote:
banner.php
footer.php
leftnav.php
slogan.php
topnav.php
|
5 incudes per page. 
|
|
|
03-22-2004, 11:57 PM
|
#8 (permalink)
|
|
Inactive
Join Date: 02-07-04
Location: AZ
Posts: 698
Latest Blog: None
|
Yeah includes ROCK...esp if you have a *hit load of pages.
|
|
|
03-25-2004, 03:32 AM
|
#9 (permalink)
|
|
Inactive
Join Date: 02-27-04
Location: Next Door Really? Yes
Posts: 268
Latest Blog: None
|
A page can possibly never have too many includes. Basically all you are doing is get another page to be displayed within your page.
|
|
|
03-25-2004, 03:49 AM
|
#10 (permalink)
|
|
v7n Mentor
Join Date: 10-11-03
Posts: 1,137
Latest Blog: None
|
I've got 6 and 7 includes on some of my administration pages for Protoolreview.
|
|
|
03-25-2004, 04:16 AM
|
#11 (permalink)
|
|
Inactive
Join Date: 10-12-03
Location: Cranberry Township
Posts: 275
|
An include uses a portion of memory. Eventually there will be too much memory usage due to the processing that you are doing, but you aren't going to hit that with four or five includes, trust me on that one.
|
|
|
03-25-2004, 07:59 AM
|
#12 (permalink)
|
|
Moderator
Join Date: 10-13-03
Location: UK
Posts: 2,819
Latest Blog: None
|
If you might accidentally include() a file more than once, it would be a waste of memory. If you use include_once() it will only load the file if it has not alraedy loaded it, (but always load it if it hasn't already).
|
|
|
04-12-2004, 12:57 PM
|
#13 (permalink)
|
|
v7n Mentor
Join Date: 02-18-04
Location: Minneapolis, Minnesota
Posts: 1,940
|
Not sure if you are still interested in this but I worked on a huge project and some of the pages had anywhere from 15 - 25 include files based on the language the user was viewing. Some of the pages were over 100kb in size once you added all the file sizes together.
This was never an issue with our site as far as performance.
The site was setup specifically to separate the code from the content based on different languages. It worked well for us, because the programmers coded and the content managers only had access to the content without always breaking the code. Especially when translating.
The only limitation with include files is that all the include files are downloaded with the page every time. If for some reason you did add the same include file more than once then the file would be served up twice.
ImagineMN
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -7. The time now is 10:25 AM.
© Copyright 2008 V7 Inc
|