calling functions from one or multiple files

From: Date: Wed, 24 Sep 2008 16:28:52 +0000
Subject: calling functions from one or multiple files
Groups: php.general 
Request: Send a blank email to php-general+get-280853@lists.php.net to get a copy of this message
Hi, Right now I use one file, usually called functions.php, with all functions I'm going to use most likely on every page. Then, I create each function I'm going to use once in a while as separate file. Pro: I would include a function when I'm going to use. Con: I have to write extra include line to call function. And have bunch of files (functions) in function folder. I was talking to co-workers few days ago and they said I complicate my life to much and putting ALL functions in one file is just fine and I'll not be able to see difference in "real situations". True? -ll

« previous php.general (#280853) next »