Jump to content

about set environment variable


joymis

Recommended Posts

Hello,

 

I have some environment variables...like

 

upload_path = 'abc/'

upload_size = '5M'

sys_id = 'w3c'

session_time = '600'

......

 

I want use DB or use *.ini access these variables.

 

whcih one is better and safe?

 

Thanks.

Link to comment
Share on other sites

It's common to put basic configuration in an include file. You'll need an include file anyway for database connection details, so you can either add your other config options to the file or you can save them in the database and then have a GUI in your program to change them. If you want people to be able to log in and change various settings, those settings should go in a database. If they can't be changed by people using the program then they go in an include file.

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...