title: PHP Username/Password Security
body: <p>I'm creating a login script for a website I'm developing. At the moment I have the usernames and passwords hard-coded into the script. i.e.</p>
  
  <pre><code>$usersAndPasses = array(
      'username1' =&gt; 'password1',
      'username2' =&gt; 'password2'
  )
  </code></pre>
  
  <p>and so on</p>
  
  <p>I was wondering if this is any less secure than placing them in a MySQL database.</p>
  
  <p>Thanks</p>