SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Jan 2001
    Location
    Brooklyn, NY
    Posts
    28
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i've read from various sources that 2 or 3 sql queries are the most you should put in to a site with a decent amount of traffic, but how many includes are too many? thanks.

    -ld

  2. #2
    Not Bad, eh? Justin Sampson's Avatar
    Join Date
    Aug 2000
    Location
    N.S., Canada
    Posts
    487
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    As far as I know includes don't slow down your scripts very much. It depends what's in them too, obviously the more in the the slower it will be. I usually have 2-3 on my PHP pages.

  3. #3
    SitePoint Wizard TWTCommish's Avatar
    Join Date
    Aug 1999
    Location
    Pittsburgh, PA, USA
    Posts
    3,910
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Includes are faster than SQL queries, basically every single time.

    However, if you want to reduce the number of includes used, just store all your includes as functions, and use require() at the top of all files.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •