Page 1 of 1

Protecting MySQL Connect Information?

Posted: Tue Jul 13, 2004 6:08 pm
by Fusion
In your oppinion whats the best way to protect your mysql query to connect to you database? I am building a site wich will have lot of members and want to protect this information. THanks in advance!

Posted: Wed Jul 14, 2004 1:49 am
by John Cartwright
huh?

Posted: Wed Jul 14, 2004 2:35 am
by qads
hide the query?...you must mean connection information?

well...it doest show in the page source, which you prolly know already, you can always have the connection info in a include file, and put that file outside the web dir/root.

encrypt it

Posted: Wed Jul 14, 2004 3:15 am
by djot
-

Hi,

came along a new class on phpclasses.org today, that encrypts php-code, so your code and db-login-data may be encrypted. Looks quite ok, try out yourself!

http://www.phpclasses.org/browse/package/1730.html

djot

-

Posted: Wed Jul 14, 2004 3:16 am
by Sat
or put in includes directory file .htaccess ... no more ways, I think.

Re: encrypt it

Posted: Wed Jul 14, 2004 10:40 am
by PrObLeM
djot wrote:-

Hi,

came along a new class on phpclasses.org today, that encrypts php-code, so your code and db-login-data may be encrypted. Looks quite ok, try out yourself!

http://www.phpclasses.org/browse/package/1730.html

djot

-
I dont know if that may be such a good idea...what if you loose the database information or if you need to edit that file...?