Hi All,
I want to store a ini file which holds some values. I want to store it in a location. Where should i store this file. Should i store in config directory?
Page 1 of 1
Where To Store Ini Files Where to store ini files
#4
Posted 11 December 2012 - 05:38 AM
You may use any place you'd like to. It's only more convenient to use commonly used directories in a case other developers will work with your code. If you'll be the only developer - it's a matter of your own choice and conveniency only, I think.
if you work with Yii:
'Data' directory is mostly used for storing files that provide some data (excuse me for repeating the word), e.g. sqlite files or dat file with list of something, for example.
'Config' directory is used for storing configuration files. So, if you have some configurations in your ini file, it has some logic to put it in config directory (at least at would for me and for the previous commentator, LastDay).
if you work with Yii:
'Data' directory is mostly used for storing files that provide some data (excuse me for repeating the word), e.g. sqlite files or dat file with list of something, for example.
'Config' directory is used for storing configuration files. So, if you have some configurations in your ini file, it has some logic to put it in config directory (at least at would for me and for the previous commentator, LastDay).
#5
Posted 12 December 2012 - 03:28 AM
Thanks yugene.
I am also now using config directory as my ini files contains few configurations.
Cheers
Smith
I am also now using config directory as my ini files contains few configurations.
Cheers
Smith
Share this topic:
Page 1 of 1

Help













