Re: storing functions

From: Date: Wed, 04 Apr 2007 13:29:28 +0000
Subject: Re: storing functions
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-252038@lists.php.net to get a copy of this message
Ross wrote: > I am wondering how you store and recall your functions. > > I have an external file - functions.php, this includes all the functions for > the site. It is included in the pages head and then I just use the functions > when I need them. > > Does anyone have a better way to store/recall functions? having an army of chinese type in the required files from memory using altair 8000 interface for every request. only joking. what you have is a basic 'include' strategy, as functions.php grows you might consider splitting it into a number of files that group similar functions together, e.g. db.funcs.php output.funcs.php misc.func.php other than that I'm not sure what you are really asking? > > > > > R. >

« previous php.general (#252038) next »