Welcome Guest, Not a member yet? Register   Sign In
Is it safe to keep database password and username in config database file in live site
#11

[eluser]Joshua Logsdon[/eluser]
Just another note on top of GnomBrother, if you want to stick to your pure php way... just make a separate constants file (similar to /application/config/constants.php) outside of www, include it at the top of your /applications/config/database.php file and then assign as necessary.

CI is pure php Smile it just may feel a little odd to go outside of the "framework conventions mindset" to do what you need. Compared to hacking up or overriding core stuff though, this is pretty minor.


Messages In This Thread
Is it safe to keep database password and username in config database file in live site - by El Forum - 01-23-2010, 11:40 PM



Theme © iAndrew 2016 - Forum software by © MyBB