Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » General » PHP discussions » config file
Show: Today's Messages :: Unread Messages :: Show Polls :: Message Navigator
| Subscribe to topic | Bookmark topic 
Switch to threaded view of this topic Create a new topic Submit Reply
config file [message #28436] Mon, 24 October 2005 10:37
danforbert is currently offline  danforbert   Canada
Messages: 1
Registered: October 2005
Location: Toronto, Ontario
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
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.


Quick Reply
Formatting Tools:   
  Switch to threaded view of this topic Create a new topic
Previous Topic: posting limitation
Next Topic: How to creating a thread?
Goto Forum:

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

Current Time: Mon Sep 24 05:47:01 EDT 2018

Total time taken to generate the page: 0.00662 seconds