Efficiency for including files of functions (in PHP)

MobilPilihan

New Member
If I had a large number of functions would it be better to keep them all in one large file or would it be better to separate them into several files of related functions. By better I mean more efficient for both maintainability and for the server processing the request.For example right now I have all my files in a file named \[code\]include.php\[/code\]. But would it be wiser to have an include file of includes like:\[code\]<?php include('/functions/user.php'); include('/functions/admin.php'); include('/functions/content.php'); include('/functions/nav.php'); include('/functions/database.php'); include('/functions/other_junk.php');?>\[/code\]
 
Back
Top