From: "Hardik Doshi" <[EMAIL PROTECTED]>
> I have following options for working with the
> configuration files with the relatively large web
> application.
>
> 1. Configuration variables using the DEFINE.
>
> 2. Array - Each configuration variable as an array
> element.
>
> 3. PHP.INI like config files.

A combination of #3 and #2. Store the data in a php.ini-style config file
and use parse_ini_file() to read it into an array.

You could even merge the array into the $_SERVER (or any other superglobal)
array so that your config vars are available in functions without having to
make anything global.

---John Holmes...


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to