Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Thread: Application Configuration
01-12-2008, 10:28 PM #1
- Join Date
- Jun 2007
- Thanked 1 Time in 1 Post
Basic question... I've been looking at some work by other people but I don't understand how to create/maintain an application configuration file. I'm refering to the file you create to save the settings for the application - ie. theme preferences, site title, path details...
Can someone point me to some simple examples or tutorials please?
ThanksOf all the things I've lost in my life time, my mind is the one I miss the most!
01-13-2008, 08:44 AM #2
- Join Date
- Sep 2002
- Saskatoon, Saskatchewan
- Thanked 2,662 Times in 2,631 Posts
I'm assuming your talking about your own configuration files.
There is no real way to save your files, its all down to the user. If its not a security hazard of any sorts, something like user preferences, you can use something simple, plain text, xml, or (can't remember exactly what php calls them...) an ini file - that looks and is parsed similar to the php ini file. If security is a risk, save it up as a php file and place it above your public html directory or wherever the pages are served from.
But what it comes down to is simply create configuration files as you see them making sense. What anybody else says is really irrelevant, so long as you can easily read/write data from/to the file.
Hope that helps!
Been gone for a few months, and haven't programmed in that long of a time. Meh, I'll wing it ;)PHP Code:
header('HTTP/1.1 420 Enhance Your Calm');