Re: [PHP] Structure of PHP files

2009-07-23 Thread Robert Cummings
Paul M Foster wrote: On Thu, Jul 23, 2009 at 09:34:37AM -0400, Robert Cummings wrote: Not that I disagree with your methodology at this time, but you could have just made that single big file, include all those little files and still had a single load statement in each of your consumer sour

Re: [PHP] Structure of PHP files

2009-07-23 Thread Paul M Foster
On Thu, Jul 23, 2009 at 09:34:37AM -0400, Robert Cummings wrote: > Not that I disagree with your methodology at this time, but you could > have just made that single big file, include all those little files and > still had a single load statement in each of your consumer source files. > With com

Re: [PHP] Structure of PHP files

2009-07-23 Thread Floyd Resler
'Tis true. I just find dealing with the smaller files much easier. At the time I was using Komodo IDE and it would get very sluggish with the larger files. Take care, Floyd On Jul 23, 2009, at 9:34 AM, Robert Cummings wrote: Floyd Resler wrote: When I first started programming in PHP I

Re: [PHP] Structure of PHP files

2009-07-23 Thread Robert Cummings
Floyd Resler wrote: When I first started programming in PHP I used the second method you mentioned. I had a single file I called utils.php and it contained all the functions I could possibly need throughout my site. Unfortunately, this file grew to be over 10,000 lines and most of the t

Re: [PHP] Structure of PHP files

2009-07-23 Thread Floyd Resler
When I first started programming in PHP I used the second method you mentioned. I had a single file I called utils.php and it contained all the functions I could possibly need throughout my site. Unfortunately, this file grew to be over 10,000 lines and most of the time I only needed a co

RE: [PHP] Structure of PHP files

2009-07-23 Thread Ford, Mike
> -Original Message- > From: Dengxule [mailto:dengx...@gmail.com] > Sent: 23 July 2009 10:53 > > > Hoping for the coming of the concept of PACKAGE. Seems that > NAMESPACE will > be introduced in PHP6. Already present in 5.3, actually. Cheers! Mike -- Mike Ford, Electronic Informatio

Re: [PHP] Structure of PHP files

2009-07-23 Thread Dengxule
2009/7/23 Sándor Tamás (HostWare Kft.) > Hi, > > It isn't really a programming question, but rather a structural. > > Let's suppose I have a PHP page, which is built by other PHP files' > includes. > > Which is the better approach: > in a switch-like statement I include the required PHP files, w