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

Home » General » PHP discussions » config file
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view 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:
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
[Message index]
 
Read Message
Previous Topic: posting limitation
Next Topic: How to creating a thread?
Goto Forum:
  

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

Current Time: Sun Nov 24 08:57:13 GMT 2024

Total time taken to generate the page: 0.04655 seconds