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: 0
|
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: Tue Dec 03 19:04:04 GMT 2024
Total time taken to generate the page: 0.04177 seconds