title: how to set PHP_AUTH_USER and PHP_AUTH_PW in request header?
body: <p>I am doing this with PHP and would like to know a way to setup <code>PHP_AUTH_USER</code>, <code>PHP_AUTH_PW</code>, <code>HTTP_X_USERNAME</code>, <code>HTTP_X_PASSWORD</code> from request headers.</p>
  
  <p><br>When I set the request header as:</p>
  
  <pre><code>Authorization: Basic myuser:mypass
  </code></pre>
  
  <p>it gives some strange values:</p>
  
  <pre><code>[PHP_AUTH_USER] =&gt; k
  [PHP_AUTH_PW] =&gt; �j�����
  </code></pre>
  
  <p>But when i set it this way: </p>
  
  <pre><code>Authorization: Basic bXl1c2VyOm15cGFzcw== 
  </code></pre>
  
  <p>it returns:</p>
  
  <pre><code>[PHP_AUTH_USER] =&gt; myuser
  [PHP_AUTH_PW] =&gt; mypass
  </code></pre>