Make sure that the encoder you use actually makes string unreadable.
Otherwise, you can use a simple trick, like for example XORing the whole
string with FF or something similar.
-- 
------------
php|architect - The magazine for PHP Professionals
The first monthly worldwide  magazine dedicated to PHP programmer

Come visit us at http://www.phparch.com!

--- Begin Message ---
actually you can make a .php file with your connection info, include it in
your .php files at the top and encrypt that one file (they don't need to see
it anyway).  use a php encoder for the file with your login info in it.

-----Original Message-----
From: 1LT John W. Holmes [mailto:holmes072000@;charter.net]
Sent: Wednesday, November 06, 2002 4:16 PM
To: William Trappeniers; [EMAIL PROTECTED]
Subject: Re: [PHP-DB] MySQL password protection?


> I was wondering if it is possible to protect my password to the
MySQL-server
> from being in a PHP-script.  Now I can't do that, so everybody who gets to
> see my php-sourcecode also can see my (not protected/not encrypted)
> password.
> How can I change this?

You can't, unless you want to put it in php.ini or a my.conf file...

---John Holmes...


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

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


--- End Message ---
-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to