Re: [PHP] Advice on script length please!

2003-06-06 Thread Wendell Brown
On Thu, 5 Jun 2003 10:25:01 +0100, Bix wrote: >My file is currently 1200 lines long and consist of 450 lines of case >statements and then the rest are functions. Obviously there are ways to optimize the code for speed. However, as with many optimizations, there are trade offs... One way to do a

RE: [PHP] Advice on script length please!

2003-06-05 Thread Jay Blanchard
[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"); .

RE: [PHP] Advice on script length please!

2003-06-05 Thread Ford, Mike [LSS]
> -Original Message- > From: Jay Blanchard [mailto:[EMAIL PROTECTED] > Sent: 05 June 2003 13:36 > > [snip] > > If I did this, would it make a huge amount of difference? > > I'm almost certain it WOULD make a difference, but apart from the > execution time, I can't think of anything worse

RE: [PHP] Advice on script length please!

2003-06-05 Thread Jay Blanchard
[snip] On a similar note, does php 'look at' all the functions even if not used? I can understand it reads them, but does it involve any parsing time? [/snip] http://us3.php.net/manual/en/function.include.php has a wealth of information, including important notes about security of included files.

Re: [PHP] Advice on script length please!

2003-06-05 Thread Bix
On a similar note, does php 'look at' all the functions even if not used? I can understand it reads them, but does it involve any parsing time? Bix. "Jay Blanchard" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] [snip] > If I did this, would it make a huge amount of difference? I'm

RE: [PHP] Advice on script length please!

2003-06-05 Thread Jay Blanchard
[snip] > If I did this, would it make a huge amount of difference? I'm almost certain it WOULD make a difference, but apart from the execution time, I can't think of anything worse than scrolling through 2000 lines of code looking for the section I'm after. Or, even if *I* could find my way aroun

Re: [PHP] Advice on script length please!

2003-06-05 Thread Justin French
on 05/06/03 7:25 PM, Bix ([EMAIL PROTECTED]) wrote: > If I did this, would it make a huge amount of difference? I'm almost certain it WOULD make a difference, but apart from the execution time, I can't think of anything worse than scrolling through 2000 lines of code looking for the section I'm a