Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Do too many PHP includes slow down your website?
Old 12-05-2007, 01:07 AM Can too many PHP includes slow down your site?
brian101's Avatar
Super Talker

Posts: 146
Location: Seattle, WA
Trades: 3
i was just wandering because i was planning to use a lot of php includes for my deal site does it go slower when you use it to much?
__________________


Last edited by brian101; 12-05-2007 at 01:51 AM..
brian101 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-05-2007, 02:05 AM Re: Do too many PHP includes slow down your website?
NullPointer's Avatar
Will Code for Food

Posts: 2,815
Name: Matt
Location: Irvine, CA
Trades: 0
I've never experienced any performance related issues while using php includes, but like any function, I'm sure if you use it a lot things will start to slow down. Of course in terms of computing a lot is A LOT, I think you'll be fine so long as your 'a lot' isn't some huge amount, I'd venture to say even with as many as 20 you'd be fine, but if that is the case you might have some organizational issues.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
NullPointer is online now
Reply With Quote
View Public Profile Visit NullPointer's homepage!
 
Old 12-05-2007, 07:42 AM Re: Do too many PHP includes slow down your website?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,385
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
There will be some marginal slow down with a huge number of includes ( see http://www.webmaster-talk.com/php-fo..._contents.html )

But you are talking hundreds of includes for it to be noticeable, Unless your server is an seriously under powered, overloaded piece of crud.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 12-08-2007, 06:19 AM Re: Do too many PHP includes slow down your website?
nabil_kadimi's Avatar
Experienced Talker

Posts: 42
Name: nabil
Trades: 0
Of course, I thinks every single bit of code will slow down slightly your script.. but there are always ways to optimize your scripts
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
nabil_kadimi is offline
Reply With Quote
View Public Profile
 
Old 12-11-2007, 01:32 AM Re: Do too many PHP includes slow down your website?
mtishetsky's Avatar
King Spam Talker

Posts: 1,226
Name: Mike
Location: Mataro, Spain
Trades: 0
If you use some unoptimized database queries then the slowdown caused by DB will be much more noticeable comparing to includes. And yes, Chris is right, if your server is not a P1-133 under 1k hits/second the decrease caused by includes will hardly be larger than 1% comparing to the same functionality performed by single solid script.
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE

And don't forget to give me talkupation!
mtishetsky is offline
Reply With Quote
View Public Profile Visit mtishetsky's homepage!
 
Reply     « Reply to Do too many PHP includes slow down your website?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.30554 seconds with 12 queries