From: Matthew P. <mp...@he...> - 2004-06-30 01:03:12
|
On Tue, Jun 29, 2004 at 07:39:12PM +0200, Reini Urban wrote: > I never said that your idea sucks. > I like it. I even have some test scripts which use your approach. "And don't really like Matthew's idea." (That's from message 8500690 in the phpwiki-talk archive). I'm happy to accept that you may have changed your mind in the interim, but you did say in the past that you didn't like it. > I just prefer my simple starter scripts because they are shorter. Shorter than <?php require_once 'lib/IniConfig.php'; IniConfig('/foo/bar/baz'); define('__CONFIGURED'); ? The three basic defines in your example in 8500690 are that length, before you start including index.php or lib/main.php. The snippet above also requires one change -- the location of the config file -- for use on another site. > And we used my way for some years now in the demo site, before we even > had a config.ini file. I'm not denying it may well have been the best solution in the past. - Matt |