title: Can you safely store passwords in PHP?
body: <p>I recently made a PHP login script with a Username and Password login for a test with sessions and no MySQL.</p>
  
  <p>I stored the passwords in an array like this</p>
  
  <pre><code>$filepassword[1] = "123"; // User Bob
  $filepassword[2] = "321"; // User Tim
  </code></pre>
  
  <p>The user names are stored the same way in an array like so</p>
  
  <pre><code>$fileuser[1] = "Bob"; // Password 123
  $fileuser[2] = "Tim"; // Password 321
  </code></pre>
  
  <p>I use Post to get the inputtedd password and then put it in a for loop and if the password equals one in the array it breaks and returns 1 and then checks to see if the numbers match for the username and checks it for a match.</p>
  
  <p>But, should Istore the passwords or even a hash of them in a php file?</p>