Chapter 10. HTTP functions

Table of Contents

HTTP authentication
http_auth ()

HTTP authentication

The library supports basic HTTP authentication and reading htpasswd files.

http_auth ()

  void http_auth ($account_array, $realm = '');
        

This function checks if the current username and password matches an account in the $account_array. The keys contain the user names, the values the crypted password. If no valid login was found the program is exited; the function then doesn't return.