Protecting MySQL Connect Information?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Fusion
Forum Newbie
Posts: 13
Joined: Wed May 12, 2004 9:48 am

Protecting MySQL Connect Information?

Post 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!
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

huh?
qads
DevNet Resident
Posts: 1199
Joined: Tue Apr 23, 2002 10:02 am
Location: Brisbane

Post 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.
djot
Forum Contributor
Posts: 313
Joined: Wed Jan 14, 2004 10:21 am
Location: planet earth
Contact:

encrypt it

Post 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

-
Last edited by djot on Wed Jul 14, 2004 3:16 am, edited 1 time in total.
Sat
Forum Newbie
Posts: 5
Joined: Tue Jul 13, 2004 6:58 am
Location: Russia

Post by Sat »

or put in includes directory file .htaccess ... no more ways, I think.
User avatar
PrObLeM
Forum Contributor
Posts: 418
Joined: Sun Mar 07, 2004 2:30 pm
Location: Mesa, AZ
Contact:

Re: encrypt it

Post 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...?
Post Reply