refbase and htaccess

  • 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 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 [...]/

    Any idea how to fix this problem?

    Thanks and greetings,

  • 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

Log in to post a comment.