title: How can I avoid hardcoding the database connection password?
body: <p>I am working on a school-project (writing a website) and I ran into the problem of providing the password for the connection to our database. Because of our Open-Source license we have to publish the sourcecode but that would mean that everyone could connect to the database and see tha data.</p>
  
  <p>Currently our connection (a php file) looks like this:</p>
  
  <pre><code>$host="************";
  $password="************";
  $this-&gt;conn = new mysqli($host, $user, $password, $dbname).mysqli_connect_error());
  </code></pre>
  
  <p>Now my question is: how can i provide the password to connect to the database without needing to write <code>$password=...</code> ?</p>