Do you have a question? Post it now! No Registration Necessary. Now with pictures!
November 5, 2004, 7:15 am
rate this thread
defined "preferences" (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 "preferences" (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,