CGI, MySQL & Python

CS sds357 at cablespeed.com
Sat Dec 29 18:52:28 EST 2007


I'm new to programming and I'm trying to find some answers.  I wrote a few 
python cgi scripts for my website all of which access a mysql db on 
'localhost'. My question is, Is it a bad idea to have my username and 
password for my db coded in my script? Is there a better way to make sure 
that information can't be acessed? Obviously I wan't to make sure that my 
*.py can't be downloaded from /cgi-bin and give anyone access to my db's.

Cory 




More information about the Python-list mailing list