refbase and htaccess

Help
2010-08-17
2013-05-28
  • Matthias Guth

    Matthias Guth - 2010-08-17

    Hi all,

    to allow access to refbase only to a certain goup of people I put a .htaccess and .htpasswd file in the refbase directory. Now I've got the problem that the fetchDataFromURL function in include.inc.php uses fopen to get the most recently added entries via show.php.

    Due to fopen cannot authorise, the request ends with:

    failed to open stream: HTTP request failed! HTTP/1.1 401 Authorization Required in [...]/include.inc.php
    

    Any idea how to fix this problem?

    Thanks and greetings,
    Matthias

     
  • Richard Karnesky

    You can either:

    • Permit connections from localhost in .htaccess
    • Edit index.php to not use fopen
    • Add user/pass to the uri passed to fopen
      -Rick
     

Log in to post a comment.