FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » General » PHP discussions » config file
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
config file [message #28436] Mon, 24 October 2005 14:37
danforbert is currently offline  danforbert   Canada
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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: posting limitation
Next Topic: How to creating a thread?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 21 10:40:24 GMT 2024

Total time taken to generate the page: 0.02166 seconds