Re: Secure connection with MySQL database

From: Date: Sun, 18 Aug 2002 17:15:32 +0000
Subject: Re: Secure connection with MySQL database
Groups: php.general 
Request: Send a blank email to php-general+get-113141@lists.php.net to get a copy of this message
Well, I'm not sure if this is what you're looking for but... if you name the file with a .php extension (instead of .txt or .inc) then your password is "protected". For example, you have a password declared like this: $my_db_username = 'MyUserName'; $my_db_password = 'MyPassWord'; And it's inside a file named "myfile.inc.php", then, even if somebody try to access the file using their browser like this: http://aaa.bbb.ccc/myfile.inc.php Nothing will appear... - E
How can I protect my username and password for my connection with a mysql server. I can't place a file outside the root by the provider I use. Thankx -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
_________________________________________________________________ Charle con sus amigos online usando MSN Messenger: http://messenger.msn.com

« previous php.general (#113141) next »