Page 1 of 1

Application Configuration File

Posted: Wed Jan 22, 2003 2:31 pm
by caseymanus
I want to create an application configuration file to set parameters for my application (such as database name, directories that contain files), then in my first php page read the config file. Does anyone know a good way to do this? I would like to format my config file in plain text or XML....

Posted: Thu Jan 23, 2003 10:10 am
by caseymanus
I can't believe no one has ever done this...someone, anyone?

Posted: Thu Jan 23, 2003 11:01 am
by hedge
ok, that's annoying but...

I do this, I have a config file. It's nothing fancy just a php file that sets constants and is then included. It is nice to have all site-specific params in one place.