title: Is it ever ok to store password in plain text in a php variable or php constant?
body: <p>As per question, is it safe to store passwords on php pages such as</p>
  
  <pre><code>$password = 'pa$$w0rd';
  </code></pre>
  
  <p>If the users can't see it, it's safe, right?</p>
  
  <p>EDIT:
  Some people actually suggested using hash, however, there would be a problem with database server connection password, wouldn't it?</p>