By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,369 Members | 950 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,369 IT Pros & Developers. It's quick & easy.

include files

P: n/a
Hello, i have a very basic question:

What is better, to include one big include file with all functions in it or
is it better to include several include files with each function in a
separate include file?

Regards,

Marcel
Jul 17 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
I believe you should store functions typically used together for some task
in a single file, and not hessitate to use multiple files to store functions
for different tasks. Using a good multifile editor like UltraEdit probably
helps to keep a clear structure.
What is better, to include one big include file with all functions in it or is it better to include several include files with each function in a
separate include file?

Jul 17 '05 #2

P: n/a

"Rick van Krevelen" <kr******@cs.vu.nl> schreef in bericht
news:Wv******************@amsnews05.chello.com...
I believe you should store functions typically used together for some task
in a single file, and not hessitate to use multiple files to store
functions
for different tasks. Using a good multifile editor like UltraEdit probably
helps to keep a clear structure.


Thanks Rick but my question was a performance issue... will a php page with
functions split into multiple include-files take more time to appear in a
browser than a page with one big include-file containing all functions.

Marcel
Jul 17 '05 #3

P: n/a
Well, it depends. If you only need to use a few of the functions,
instead of every function in the file, then multiple include files,
using only a certain number of them would be more efficient. Not much
more efficient though, since the filesystem has an overhead for opening
multiple files.

-Joshua Gao
Marcel wrote:
"Rick van Krevelen" <kr******@cs.vu.nl> schreef in bericht
news:Wv******************@amsnews05.chello.com...
I believe you should store functions typically used together for some task in a single file, and not hessitate to use multiple files to store
functions
for different tasks. Using a good multifile editor like UltraEdit probably helps to keep a clear structure.

Thanks Rick but my question was a performance issue... will a php

page with functions split into multiple include-files take more time to appear in a browser than a page with one big include-file containing all functions.
Marcel


Jul 17 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.