title: PHP - Access to a password protected page
body: <p>I would just like to find a way in PHP (a link, a button, etc.) to give the user the possibility to open a (http-authentication-based) password protected page.</p>
  
  <p>I already tried with a simple href containing the link to:</p>
  
  <pre><code>http://username:password@domain 
  </code></pre>
  
  <p>but it seems it does not work anymore in current browsers. </p>
  
  <p>Is there a way to do this? It seems a very trivial problem, but actually I still  have not found a way.</p>
  
  <p>Thank you.</p>