Most efficient way of storing database configurations?
View Single Post
11-28-2007, 05:14 PM
Join Date: Nov 2007
Originally Posted by
And what you can do then, is to make a script that loads the database name from a .txt file
And then another script that allows you to change that value.
So your $tanaxia['config']['database']['data'] would be the value of the string in the .txt file ;)
Puting the database name or any database information in any file that is accessible to users somehow is not a good idea.
If you put the database name or any information like that in a text file make sure with .htaccess (for apache) or otherway (for other servers) that the file is not accessible to users.
View Public Profile
Send a private message to Morishani
Visit Morishani's homepage!
Find More Posts by Morishani