'Is this a secure way of connecting to an SQL server?
Suppose I have a .php script on my server which interacts with a MySQL server.
Part of it is:
function sqlQuery($queryString) {
...
$mysqli = new mysqli("theHost:some-port",
"DB_allowed_username",
"password123", "dbName");
...
}
This script is solely server-side, and something like DevTools or view-source://web.address will not show the source code.
However, it is really important that nobody is able to see this source code because it bears my username and password for one of the privileged users of the database. Is there some other way someone could discover these details, and if so, how do I hide them more securely?
Note:- currently I have an SSL certificate but it is not guaranteed that I will have it indefinitely.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
