473,396 Members | 1,754 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

include file or database

I'm working on an application that I will make use of "constants". I put
contants in quotes becuase they will change periodically (Logo path, css
path, psw expiration times etc). From a system admin standpoint does it make
sense to put them in a constants file, or put them in a database?

My database argument is that they can be modified by the customer via some
web forms.
My contants include file argument is that they can't be modified as easiliy
by a half wit customer, and there is no database overhead.

Thoughts?

Thanks!
Jul 19 '05 #1
3 1526
It sounds to me that you already see the advantages and disadvantages to
both options. I typically put constants that will rarely change, if ever,
in an include file. If you wanted to have the best of both worlds, you
could create a page that would actually modify this file. You could open
the file with an FSO, parse the contents to find all the constants and the
values, write them back to a form, and have the form, when submitted, create
a new file.

Ray at work

"Bryan Harrington" <ne**@psacake.com> wrote in message
news:Ok*************@tk2msftngp13.phx.gbl...
I'm working on an application that I will make use of "constants". I put
contants in quotes becuase they will change periodically (Logo path, css
path, psw expiration times etc). From a system admin standpoint does it make sense to put them in a constants file, or put them in a database?

My database argument is that they can be modified by the customer via some
web forms.
My contants include file argument is that they can't be modified as easiliy by a half wit customer, and there is no database overhead.

Thoughts?

Thanks!

Jul 19 '05 #2
Bryan Harrington wrote:
I'm working on an application that I will make use of "constants". I
put contants in quotes becuase they will change periodically (Logo
path, css path, psw expiration times etc). From a system admin
standpoint does it make sense to put them in a constants file, or put
them in a database?

My database argument is that they can be modified by the customer via
some web forms.
My contants include file argument is that they can't be modified as
easiliy by a half wit customer, and there is no database overhead.

Thoughts?


either is good - depends on needs. alternatively ...

global.asa - set the values in application variables

--
William Tasso - http://WilliamTasso.com
Jul 19 '05 #3
For my part, I would have a form on a webpage that controls what the user
can update, whether file or db. Give a user access to your files, and they
can really screw things up - it only takes one inattentive typo and you've
lost one or more of your constants. If they only have access to the values,
you can trap for that.

- Wm

William Morris
Product Development, Seritas LLC

"Bryan Harrington" <ne**@psacake.com> wrote in message
news:Ok*************@tk2msftngp13.phx.gbl...
I'm working on an application that I will make use of "constants". I put
contants in quotes becuase they will change periodically (Logo path, css
path, psw expiration times etc). From a system admin standpoint does it make sense to put them in a constants file, or put them in a database?

My database argument is that they can be modified by the customer via some
web forms.
My contants include file argument is that they can't be modified as easiliy by a half wit customer, and there is no database overhead.

Thoughts?

Thanks!

Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: * | last post by:
i am using include("http://".$_SERVER."/db.php"); to include a file. It isnt returning anything or connecting to the database (which is what it is supposed to be doing). any ideas? if i put in...
9
by: Tom Cat | last post by:
Is there anything wrong with using a lot of include files? On one part of my website, I have a form. The page it posts data to, includes a different file based on some of the values. The...
6
by: zorro | last post by:
Hello, I'm programming an Amazon type web site and find myself "wasting" a lot of time writing code that gets information from include files rather than from the database because I have this...
0
by: zorro | last post by:
Thanks all for your suggestions. I'm definitely scrapping my method for now. I liked the following idea most but I'll probably go with the db method because it's probably easiest to manage. ;)...
0
by: Francois | last post by:
Hi, I think I found a bug with VS, and I've included a project example of the problem I got. I've got a project deep into a set of folders. The project have an additional include library...
23
by: Big Bill | last post by:
http://www.promcars.co.uk/pages/bonnie.php I don't believe they should be there, can I take them out without stopping the includes from functioning? I'm the (hapless) optimiser on this one... I...
14
by: @sh | last post by:
Guys, We're in the midst of building a new site and have some decisions to make RE the meta data, i.e. Title, Keywords and Description. We need to allow other non development staff to update...
5
by: frazzle | last post by:
I have been developing a system in PHP that uses MySQL. To that end, I have used a config file to hold high level fixed variables (database name, user id, password, etc) and I using "require_once"...
111
by: Nate | last post by:
Hello, I am looking for a method to automatically declare variables in C. I'm not sure if there is a good way to do this, but I had something like this in mind... int i; for(i = 1; i < 4;...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.