![]() |
Quick php question (arrays...)
is it good/safe to strucure the config file that defines db connectios (like host, user, pass, etc) like this:
PHP Code:
PHP Code:
|
From a security point of view, there is no difference between an array and a non-array variable.
|
what about speed? and any cons to using this method? or more pros to other methods?
sry for the n00b questions... (hey I gotta start somewhere ;)) |
Perhaps this may be of some help to you. Personally I'd keep it how you are. Arrays allow you to organize your data structures into groups which is just a nicer way IMO :)
|
All times are GMT. The time now is 01:54 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|