Re: Many Small Files or Larger Utility Files

From: Date: Mon, 20 Jun 2016 19:54:45 +0000
Subject: Re: Many Small Files or Larger Utility Files
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-325627@lists.php.net to get a copy of this message
I do the same - for the create, register, and forgot functions it all gets processed in the same file. On Mon, Jun 20, 2016 at 9:49 PM, Stephen <stephen-d@rogers.com> wrote: > I have made a number of web sites using PHP and mySQL. These included a > control panel for adding and maintaining content. > > I am stepping up and creating a site that will require sessions, private > areas and user registration functions. > > I have looked at samples and note that they all use many small files. I > see that as being difficult to manage. > > But I have also looked at the code for a PHP bulletin board. Many, many > small files, so I see that it is a common practise. But I see it as > complicated and difficult to manage. > > For my control panel code I have all the routines, about 10, to process > POSTS in one file. It works fine. > > Now activity is low, but that will also be the case with my new site. > > So my question: Is small, single function, files the best practise, or I > am just fine in combing many functions into larger "library" files. > > Thank you for your thoughts. > > -- > Stephen > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#325627) next »