Hello. I’m a php dev working in PHP 5.2.9 (I know, and It won’t be upgraded anytime soon). We use a very simple way to connect to the database, something like this:
$conectionObject = mssql_pconnect(“[servername]”, “[user]”, “[password]”);
I’ve been asked to use a safer way to connect to the DB, they don’t like the user/password just plainly written in the code, so I’m looking for safer ways to connect (maybe send the password by encryption or something?) without changing the code too much, we have a lot of these old PHP systems and we’re not dropping the mssql_pconnect method; we simply need a way to use it without plainly writting the db password on the code.
Any help would be much appreciated!