Global array for application config?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Michelle

    Global array for application config?

    I am writing a web based application and need to have about 40 user
    defined "preference s" (variables) set and accessed as the application
    runs. I already created a conf.php which can be used as a require_once
    page that only contains variables which are not Global, but do exist on
    each page they are "required" on. My current scheme works, but requires
    the parsing of the conf file to change vars...an array might be easier?

    My question is:

    Is this the best way to have user defined "preference s" (variables) set
    in a php app, or would a global array work better? If globals are the
    way to go would I require_once the page (script) they are on on each
    page of my app?

    Thanks for any ideas you can give me,

    Miki
Working...