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
Will including many php files slow load time?
Old 04-19-2008, 05:01 PM Will including many php files slow load time?
Nathand's Avatar
Extreme Talker

Posts: 233
Location: USA
Trades: 0
I really like modulizing php into separate files, I think that makes it much easier to edit and debug. However, will this increase page loading time and/or stress on the server?


Thanks,

Nathan
Nathand is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-19-2008, 05:44 PM Re: Will including many php files slow load time?
delighted's Avatar
Super Talker

Posts: 147
Trades: 0
Shouldn’t be a problem…
__________________

Please login or register to view this content. Registration is FREE
- upload and share 500 MB files. No registration.
delighted is offline
Reply With Quote
View Public Profile
 
Old 04-19-2008, 05:45 PM Re: Will including many php files slow load time?
Nathand's Avatar
Extreme Talker

Posts: 233
Location: USA
Trades: 0
That's what I thought. Especially since the files are local so I'm not generating http requests.

Thanks for answering my question.
Nathand is offline
Reply With Quote
View Public Profile
 
Old 04-19-2008, 06:07 PM Re: Will including many php files slow load time?
tripy's Avatar
Do not try this at home!

Posts: 3,621
Name: Thierry
Location: I'm the uber Spaminator !
Trades: 0
In fact, that depends of the content of the files.
If they all make 10 db queries, they will slow the load time the time those queries need to be ran.
__________________
Only a biker knows why a dog sticks his head out the window.
tripy is offline
Reply With Quote
View Public Profile Visit tripy's homepage!
 
Old 04-19-2008, 06:12 PM Re: Will including many php files slow load time?
delighted's Avatar
Super Talker

Posts: 147
Trades: 0
If course, but the difference from running the same number of queries in the same file would not be significant.
__________________

Please login or register to view this content. Registration is FREE
- upload and share 500 MB files. No registration.
delighted is offline
Reply With Quote
View Public Profile
 
Old 04-19-2008, 06:15 PM Re: Will including many php files slow load time?
solomongaby's Avatar
Webmaster Talker

Latest Blog Post:
How Do You Find Music Online ?
Posts: 522
Name: Gabe Solomon
Location: Romania
Trades: 1
i belive that the quest for better page loding time should be made on the page frontend ( html,css,images,javascript ) since they are responsible for 80% of the page load. The small tweaks in the server side ... will not gain you verry much, offcourse i am not saying that SQL query optimisation are not verry ussefull ... they are .... but a lot of people only try to optimise the scripts .. and nothing on the front end.
__________________
If you like my posts ... TK is appreciated:)

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
solomongaby is offline
Reply With Quote
View Public Profile Visit solomongaby's homepage!
 
Old 04-19-2008, 06:49 PM Re: Will including many php files slow load time?
nyef's Avatar
Ultra Talker

Posts: 265
Name: Lucas
Trades: 0
The difference between a 1mb file and ten 100k files connected through includes and 1000 1k files connected through includes is negligible because it's done server-side and web server software (IIS/Apache/etc) optimizes for this.

Includes are just like functions: Use early, use often -- whenever it improves readability or allows for re-use of code.
nyef is offline
Reply With Quote
View Public Profile Visit nyef's homepage!
 
Reply     « Reply to Will including many php files slow load time?
 

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.28532 seconds with 12 queries