RE: [PHP] Best way to set global params for entire site??

From: Date: Wed, 23 Oct 2002 01:37:14 +0000
Subject: RE: [PHP] Best way to set global params for entire site??
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-121009@lists.php.net to get a copy of this message
:) Perhaps... Make sure you read the notes on that page if you decide to use this function. Don't leave your config file open to the world... ---John Holmes... > -----Original Message----- > From: @ Edwin [mailto:copperwalls@hotmail.com] > Sent: Tuesday, October 22, 2002 9:23 PM > To: 1LT John W. Holmes; php-general@lists.php.net; Monty > Subject: Re: [PHP] Best way to set global params for entire site?? > > Hello, > > Perhaps, this will do the job? > > http://www.php.net/manual/en/function.parse-ini-file.php > > - E > > [snip] > > > > Or you can get fancy and get a config file parser and do things like > > [section 1] > > html = mypage.something.com > > db_user = whatever > > > > etc... You could probably find one of those on phpclasses.org or > > hotscripts.com. > > > [/snip]

« previous php.general (#121009) next »