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 

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:


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.
>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

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to