Voting

Please answer this simple SPAM challenge: one minus zero?
(Example: nine)

The Note You're Voting On

cyberscribe at php dot net
11 years ago
To implement the Digest authentication mentioned above in PHP < 5.1, try prepending the following:

<?php
$headers
= apache_request_headers();
$_SERVER['PHP_AUTH_DIGEST'] = $headers['Authorization'];
?>

or, if you don't like the idea of modifying the global $_SERVER variable directly, just use the first line and then substitute $_SERVER['PHP_AUTH_DIGEST'] in the sample code with $headers['Authorization']. Works great.

<< Back to user notes page

To Top