[Tutor] Including files for security.
Dotan Cohen
dotancohen at gmail.com
Sun Aug 24 18:08:30 CEST 2008
I have a specific file in the web tree that makes a database call. I
am uncomfortable keeping the database username and password in the
file. In PHP I usually put the database connection data in a file
outside the web tree and use the include (http://il.php.net/include/)
function to get the data. Is there a similar mechanism in Python? What
do other Python programmers use?
Thanks.
--
Dotan Cohen
http://what-is-what.com
http://gibberish.co.il
א-ב-ג-ד-ה-ו-ז-ח-ט-י-ך-כ-ל-ם-מ-ן-נ-ס-ע-ף-פ-ץ-צ-ק-ר-ש-ת
ä-ö-ü-ß-Ä-Ö-Ü
More information about the Tutor
mailing list