Connecting Tech Pros Worldwide Help | Site Map

include files

  #1  
Old July 17th, 2005, 10:57 AM
Marcel
Guest
 
Posts: 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


  #2  
Old July 17th, 2005, 10:57 AM
Rick van Krevelen
Guest
 
Posts: n/a

re: include files


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.
[color=blue]
> What is better, to include one big include file with all functions in it[/color]
or[color=blue]
> is it better to include several include files with each function in a
> separate include file?[/color]


  #3  
Old July 17th, 2005, 10:57 AM
Marcel
Guest
 
Posts: n/a

re: include files



"Rick van Krevelen" <krevelen@cs.vu.nl> schreef in bericht
news:Wvfud.87376$lN.58035@amsnews05.chello.com...[color=blue]
>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.
>[/color]

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


  #4  
Old July 17th, 2005, 10:57 AM
Joshua Gao
Guest
 
Posts: n/a

re: include files


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:[color=blue]
> "Rick van Krevelen" <krevelen@cs.vu.nl> schreef in bericht
> news:Wvfud.87376$lN.58035@amsnews05.chello.com...[color=green]
> >I believe you should store functions typically used together for[/color][/color]
some task[color=blue][color=green]
> > in a single file, and not hessitate to use multiple files to store
> > functions
> > for different tasks. Using a good multifile editor like UltraEdit[/color][/color]
probably[color=blue][color=green]
> > helps to keep a clear structure.
> >[/color]
>
> Thanks Rick but my question was a performance issue... will a php[/color]
page with[color=blue]
> functions split into multiple include-files take more time to appear[/color]
in a[color=blue]
> browser than a page with one big include-file containing all[/color]
functions.[color=blue]
>
> Marcel[/color]

Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Best Organization of PHP Include Files? David T. Ashley answers 2 March 23rd, 2007 11:45 PM
Why is MAXINT doubly defined in system include files Marc Ferry answers 11 November 13th, 2005 08:32 PM
Too Many Include Files causing IIS 500 Error Chad Scharf answers 7 July 21st, 2005 08:43 AM
Why is MAXINT doubly defined in system include files Marc Ferry answers 11 July 19th, 2005 08:11 PM
excessive use of include files Tom Cat answers 9 July 17th, 2005 09:48 AM