RE: [PHP] Advice on script length please!

From: Date: Thu, 05 Jun 2003 13:02:33 +0000
Subject: RE: [PHP] Advice on script length please!
Groups: php.general 
Request: Send a blank email to php-general+get-150350@lists.php.net to get a copy of this message
[snip] include("common_functions.php"); switch($action) case "do this": include("do_this_funcs.php"); ..... function(s) called break; case "do that": include("do_that_funcs.php"); ..... other function(s) called break; case "do the other": ..... no function(s) called break; In this case, at most one of do_this_funcs.php and do_that_funcs.php is read and compiled -- and in case "do_the_other", neither of them is. That surely has to be some sort of saving, even if the multiple file accesses offset it somewhat. (I suppose I should benchmark this to find out at what sort of filesizes one outweighs the other, but I can't be bothered! ;) [/snip] Well said Mike, it is all in the organization! Jay

« previous php.general (#150350) next »