Storing DB login details outside of the code directory

Discussions of secure PHP coding. Security in software is important, so don't be afraid to ask. And when answering: be anal. Nitpick. No security vulnerability is too small.

Moderator: General Moderators

Post Reply
impulse()
Forum Regular
Posts: 748
Joined: Wed Aug 09, 2006 8:36 am
Location: Staffordshire, UK
Contact:

Storing DB login details outside of the code directory

Post by impulse() »

I have recently read about storing details outside of the codes directory which I want to start doing but I've also read that using

Code: Select all

include
is just as dangerous as storing login details within the code itself. How can I include details from another file inside a .php file?

Regards,
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

uhm... use it.
Post Reply