title: using file_get_contents to authenticate and access an htaccess protected file
body: <p>I need to reach a foreign .php page protected by a regular .htaccess file (Auth type Basic, htpasswords etc...).</p>
  
  <p>I'd like to send the user and password needed through the request. Is it possible? I would like to avoid <code>cURL</code> and all <code>pecl_http</code> dependent functions if possible...</p>