Dear all,
I use odbc_connect() to connect to a MS SQL database. Of course with that function I have to provide the password as a parameter. Now our company policy says, I should not have the password in code anymore.
Can anybody help? I have a windows server 2012 R2 with IIS and I already have a odbc connection to that MS SQL database established within the control panel. A system DSN, 64 bit, ODBC Driver 13 for SQL Server. (see attachment for a screenshot) So I thought I could maybe use that with the PHP, because the password is already in that system DSN and I would not have to type it into the PHP Code. Does anybody know how to do it?
Best wishes
Eva
I use odbc_connect() to connect to a MS SQL database. Of course with that function I have to provide the password as a parameter. Now our company policy says, I should not have the password in code anymore.
Can anybody help? I have a windows server 2012 R2 with IIS and I already have a odbc connection to that MS SQL database established within the control panel. A system DSN, 64 bit, ODBC Driver 13 for SQL Server. (see attachment for a screenshot) So I thought I could maybe use that with the PHP, because the password is already in that system DSN and I would not have to type it into the PHP Code. Does anybody know how to do it?
Best wishes
Eva