title: How to access htpasswd-protected page automatically
body: <p>I have a passwordprotected directory with htaccess and htpasswd. </p>
  
  <p>The htaccess looks like this</p>
  
  <pre><code>AuthUserFile /usr/local/you/safedir/.htpasswd
  AuthGroupFile /dev/null
  AuthName EnterPassword
  AuthType Basic
  
  require user myusername
  </code></pre>
  
  <p>The htpasswd looks like this</p>
  
  <pre><code>myusername:password887
  </code></pre>
  
  <p>This password protected directory is named www.mydomainname.com/mystuff</p>
  
  <p>Now, I want to access this page fram a iframe (with www.mydomain.com/mustuff/index.html as src) in index.php in my root, but I dont want to make the users fill in the username and password all the time, just keep them from entering the folder the src is in.</p>
  
  <p>Is there a script that can fill out the username and password automatically without letting the "users" write the username and password all the time?</p>