Home »
General »
PHP discussions »
config file
config file [message #28436] |
Mon, 24 October 2005 14:37 |
danforbert
Messages: 1 Registered: October 2005 Location: Toronto, Ontario
Karma:
|
Junior Member |
|
|
When I create a webpage I have a config file that lists variables that I will use throughout the site. I then include the config file in each page. For functions, the needed variables are passed in the function call.
I recently read an article in which the writer suggested that the config file should contain one large multidimentional array with all the variables as elements in the array. In functions, the array, $config, would be global. That way no individual variables would have to be passed to the function.
I'm wondering what you think of this idea from a security and a speed perspective.
Thanks
Dan
|
|
|
Goto Forum:
Current Time: Thu Nov 21 23:56:03 GMT 2024
Total time taken to generate the page: 0.03651 seconds